From: Miloš Mulač Date: Fri, 11 Sep 2009 09:16:06 +0000 (+0000) Subject: correct CREAM state output X-Git-Tag: glite-security-gss_R_2_0_1_1~71 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=7c1c1d1a35952515840bf3cd2a0fcaeda10b8f88;p=jra1mw.git correct CREAM state output --- diff --git a/org.glite.lb.client/examples/job_status.c b/org.glite.lb.client/examples/job_status.c index 6127e2a..65ff093 100644 --- a/org.glite.lb.client/examples/job_status.c +++ b/org.glite.lb.client/examples/job_status.c @@ -319,11 +319,12 @@ 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_JWStatToString(stat.cream_state); + char *cream_stat_name = edg_wll_CreamStatToString(stat.cream_state); 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); + printf("%scream_jdl : %s\n", ind, stat.cream_jdl); printf("%scream_reason : %s\n", ind, stat.cream_reason); printf("%scream_lrms_id : %s\n", ind, stat.cream_lrms_id); printf("%scream_node : %s\n", ind, stat.cream_node); diff --git a/org.glite.lb.common/interface/jobstat.h.T b/org.glite.lb.common/interface/jobstat.h.T index 344f3f9..1f95027 100644 --- a/org.glite.lb.common/interface/jobstat.h.T +++ b/org.glite.lb.common/interface/jobstat.h.T @@ -195,6 +195,11 @@ extern enum edg_wll_StatJw_status edg_wll_StringToJWStat(const char *); extern char *edg_wll_JWStatToString(enum edg_wll_StatJw_status); /** + * Convert numeric CREAM status code to string representation + */ +extern char *edg_wll_CreamStatToString(enum edg_wll_StatCream_status); + +/** * Extract a variable from the JDL attribute */ extern char *edg_wll_JDLField(edg_wll_JobStat *stat, const char *field_name);