From 9dca8b11f11db92a83ff250961f3a3efad28ecee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Thu, 19 Oct 2006 14:10:01 +0000 Subject: [PATCH] print jobtype correctly --- org.glite.lb.client/examples/job_status.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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) {; -- 1.8.2.3