Fix a warning and logging the affected jobid on bad branch (SB #92129).
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Fri, 13 Jul 2012 12:32:43 +0000 (12:32 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Fri, 13 Jul 2012 12:32:43 +0000 (12:32 +0000)
org.glite.lb.state-machine/src/process_event.c

index 357ebd0..10b15d6 100644 (file)
@@ -609,9 +609,13 @@ static int processEvent_glite(intJobStat *js, edg_wll_Event *e, int ev_seq, int
                        /* consistence check -- should not receive two contradicting ReallyRunning's within single
                           deep resub cycle */
                        if (fine_res == RET_BADBRANCH) {
+                               char *jobid_s;
+
+                               jobid_s = glite_jobid_unparse(e->any.jobId);
                                syslog(LOG_ERR,"ReallyRunning on bad branch %s (%s)",
                                                e->any.source == EDG_WLL_SOURCE_LOG_MONITOR ? e->reallyRunning.wn_seq : e->any.seqcode,
-                                               e->any.jobId);
+                                               jobid_s);
+                               free(jobid_s);
                                break;
                        }
                        /* select the branch unless TOOOLD, i.e. before deep resubmission */