Skip to content
Snippets Groups Projects
Commit 8be1d3e0 authored by Danny Auble's avatar Danny Auble
Browse files

bit_fmt now does not return brackets surrounding any set of data.

parent df8ab2da
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,7 @@ documents those changes that are of interest to users and admins. ...@@ -31,6 +31,7 @@ documents those changes that are of interest to users and admins.
-- Add support for licenses in resource reservation. -- Add support for licenses in resource reservation.
-- BLUEGENE - Jobs waiting for a block to boot will now be in Configuring -- BLUEGENE - Jobs waiting for a block to boot will now be in Configuring
state. state.
-- bit_fmt now does not return brackets surrounding any set of data.
* Changes in SLURM 2.1.0-pre1 * Changes in SLURM 2.1.0-pre1
============================= =============================
......
...@@ -938,12 +938,12 @@ bit_fmt(char *str, int len, bitstr_t *b) ...@@ -938,12 +938,12 @@ bit_fmt(char *str, int len, bitstr_t *b)
} }
if (count > 0) if (count > 0)
str[strlen(str) - 1] = '\0'; /* zap trailing comma */ str[strlen(str) - 1] = '\0'; /* zap trailing comma */
if (count > 1) { /* add braces if we have more than one here */ /* if (count > 1) { /\* add braces if we have more than one here *\/ */
assert(strlen(str) + 3 < len); /* assert(strlen(str) + 3 < len); */
memmove(str + 1, str, strlen(str)); /* memmove(str + 1, str, strlen(str)); */
str[0] = '['; /* str[0] = '['; */
strcat(str, "]"); /* strcat(str, "]"); */
} /* } */
return str; return str;
} }
......
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