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