Skip to content
Snippets Groups Projects
Commit 198627ad authored by Moe Jette's avatar Moe Jette
Browse files

Make short node state names be six chars long including "*" suffix.

parent 31abf302
No related branches found
No related tags found
No related merge requests found
......@@ -357,15 +357,29 @@ char *node_state_string(enum node_states inx)
char *node_state_string_compact(enum node_states inx)
{
static char *node_state_string[] = {
"DN",
"UN",
"I",
"AL",
"DD",
"DG",
"CM",
"DOWN",
"UNK",
"IDLE",
"ALLOC",
"DRAIN",
"DRAIN",
"COMP",
"END"
};
static char *node_no_resp_string[] = {
"DOWN*",
"UNK*",
"IDLE*",
"ALLOC*",
"DRAIN*",
"DRAIN*",
"COMP*",
"END"
};
inx = (uint16_t) (inx & (~NODE_STATE_NO_RESPOND));
return node_state_string[inx];
if (inx & NODE_STATE_NO_RESPOND) {
inx = (uint16_t) (inx & (~NODE_STATE_NO_RESPOND));
return node_no_resp_string[inx];
}
else
return node_state_string[inx];
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment