From 70bef5ca951cece1a99e8a4adf8e7cfe86d6c1e9 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Fri, 7 May 2010 16:48:44 +0000 Subject: [PATCH] It is possible for the jdata param to be NULL, so protect the verbose output in that case This commit was SVN r23109. --- orte/mca/errmgr/hnp/errmgr_hnp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/orte/mca/errmgr/hnp/errmgr_hnp.c b/orte/mca/errmgr/hnp/errmgr_hnp.c index 0588d90aa6..b270e767dc 100644 --- a/orte/mca/errmgr/hnp/errmgr_hnp.c +++ b/orte/mca/errmgr/hnp/errmgr_hnp.c @@ -868,10 +868,11 @@ CHECK_ALIVE: } else { OPAL_OUTPUT_VERBOSE((5, orte_errmgr_base.output, - "%s errmgr:hnp:check_job_completed job %s is terminated (%d vs %d [0x%x])", + "%s errmgr:hnp:check_job_completed job %s is terminated (%d vs %d [%s])", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), ORTE_JOBID_PRINT(job->jobid), - job->num_terminated, job->num_procs, jdata->state )); + job->num_terminated, job->num_procs, + (NULL == jdata) ? "UNKNOWN" : orte_proc_state_to_str(jdata->state) )); } } /* if a job is still alive, we just return */