From: Aleš Křenek Date: Wed, 12 Dec 2007 17:40:06 +0000 (+0000) Subject: display also jobid when notif arrives X-Git-Tag: merge_313_3_dst~20 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=e3fe28eab2228c4ae46275b14f792d5b61f094e6;p=jra1mw.git display also jobid when notif arrives --- diff --git a/org.glite.lb.client/examples/notify.c b/org.glite.lb.client/examples/notify.c index 7f9b367..1773919 100644 --- a/org.glite.lb.client/examples/notify.c +++ b/org.glite.lb.client/examples/notify.c @@ -277,9 +277,14 @@ err: printf("\nnotification ID: %s\n", edg_wll_NotifIdUnparse(recv_nid)); if (stat.state != EDG_WLL_JOB_UNDEF) { - printf("Job status is : %s\n", + char *jobid_s; + + jobid_s = edg_wlc_JobIdUnparse(stat.jobId); + printf("Jobid:\t%s\nStatus:\t%s\n", + jobid_s, edg_wll_StatToString(stat.state)); edg_wll_FreeStatus(&stat); + free(jobid_s); stat.state = EDG_WLL_JOB_UNDEF; }