From: Jiří Filipovič Date: Fri, 25 May 2012 12:14:11 +0000 (+0000) Subject: show CREAM data for WMS+CREAM jobs X-Git-Tag: merge_32_head_src~7 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=f1e7ef663a44d778af197d61ff091e22e8004abb;p=jra1mw.git show CREAM data for WMS+CREAM jobs --- diff --git a/org.glite.lb.client/examples/job_status.c b/org.glite.lb.client/examples/job_status.c index f07fcf6..c3e7a2d 100644 --- a/org.glite.lb.client/examples/job_status.c +++ b/org.glite.lb.client/examples/job_status.c @@ -350,9 +350,8 @@ static void printstat(edg_wll_JobStat stat, int level) } /* CREAM state section */ - if (stat.jobtype == EDG_WLL_STAT_CREAM) { - char *cream_stat_name = edg_wll_CreamStatToString(stat.cream_state); - + char *cream_stat_name = edg_wll_CreamStatToString(stat.cream_state); + if (stat.jobtype == EDG_WLL_STAT_CREAM || cream_stat_name) { printf("%scream_state : %s\n", ind, cream_stat_name); printf("%scream_owner : %s\n", ind, stat.cream_owner); printf("%scream_endpoint : %s\n", ind, stat.cream_endpoint); @@ -365,9 +364,8 @@ static void printstat(edg_wll_JobStat stat, int level) printf("%scream_cancelling : %d\n", ind, stat.cream_cancelling); printf("%scream_cpu_time : %d\n", ind, stat.cream_cpu_time); printf("%scream_jw_status : %s\n", ind, edg_wll_JWStatToString(stat.cream_jw_status)); - - free(cream_stat_name); } + if (cream_stat_name) free(cream_stat_name); /* File Transfer section */ printf("%sft_compute_job : %s\n", ind, j1 = edg_wlc_JobIdUnparse(stat.ft_compute_job)); free(j1);