From 8038545d23b716e82556c87be68c70d7d73bcd24 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Tue, 13 Dec 2011 11:45:16 -0800 Subject: [PATCH] BLUEGENE - better debug --- src/plugins/select/bluegene/bg_core.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/plugins/select/bluegene/bg_core.c b/src/plugins/select/bluegene/bg_core.c index a6eade8fcff..4f43b268225 100644 --- a/src/plugins/select/bluegene/bg_core.c +++ b/src/plugins/select/bluegene/bg_core.c @@ -378,10 +378,11 @@ extern int bg_free_block(bg_record_t *bg_record, bool wait, bool locked) if (bg_conf->slurm_debug_flags & DEBUG_FLAG_SELECT_TYPE) info("bridge_block_free" - "(%s): %s State = %d", + "(%s): %s State = %s", bg_record->bg_block_id, bg_err_str(rc), - bg_record->state); + bg_block_state_string( + bg_record->state)); #ifdef HAVE_BGQ if (bg_record->state != BG_BLOCK_FREE && bg_record->state @@ -390,10 +391,11 @@ extern int bg_free_block(bg_record_t *bg_record, bool wait, bool locked) #endif } else { error("bridge_block_free" - "(%s): %s State = %d", + "(%s): %s State = %s", bg_record->bg_block_id, bg_err_str(rc), - bg_record->state); + bg_block_state_string( + bg_record->state)); } } } @@ -610,7 +612,7 @@ extern const char *bg_err_str(int inx) happens very rarely and usually in debugging, so it hopefully isn't really all that bad. */ - snprintf(tmp_char, sizeof(tmp_char), "%u ?", inx); + snprintf(tmp_char, sizeof(tmp_char), "unknown %u?", inx); return tmp_char; } -- GitLab