From: Miloš Mulač Date: Thu, 19 Oct 2006 14:10:01 +0000 (+0000) Subject: print jobtype correctly X-Git-Tag: mergeto_glite-lb-client_branch_2_3_0_0243_generic_23Nov06~5 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=9dca8b11f11db92a83ff250961f3a3efad28ecee;p=jra1mw.git print jobtype correctly --- diff --git a/org.glite.lb.client/examples/job_status.c b/org.glite.lb.client/examples/job_status.c index 696202d..a10612c 100644 --- a/org.glite.lb.client/examples/job_status.c +++ b/org.glite.lb.client/examples/job_status.c @@ -188,7 +188,19 @@ static void printstat(edg_wll_JobStat stat, int level) printf("%sstate : %s\n", ind, s); printf("%sjobId : %s\n", ind, j = edg_wlc_JobIdUnparse(stat.jobId)); printf("%sowner : %s\n", ind, stat.owner); - printf("%sjobtype : %s\n", ind, (stat.jobtype ? "DAG" : "SIMPLE") ); + switch (stat.jobtype) { + case EDG_WLL_STAT_SIMPLE: + printf("%sjobtype : SIMPLE\n", ind); + break; + case EDG_WLL_STAT_DAG: + printf("%sjobtype : DAG\n", ind); + break; + case EDG_WLL_STAT_COLLECTION: + printf("%sjobtype : COLLECTION\n", ind); + break; + default: + break; + } printf("%sparent_job : %s\n", ind, j = edg_wlc_JobIdUnparse(stat.parent_job)); if (stat.jobtype) {;