Need to use %d to print -1 instead of %u
Need to check for -1 in input for stripe size
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Change-Id: Ia9593497764f1d3c0110ad22d70b5da8f7b07a21
Reviewed-on: http://review.whamcloud.com/1922
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Richard Henwood <rhenwood@whamcloud.com>
{
char *end;
+ if (strncmp(optarg, "-", 1) == 0)
+ return -1;
+
if (*size_units == 0)
*size_units = 1;
&scount, NULL,
NULL);
if (rc == 0)
- llapi_printf(LLAPI_MSG_NORMAL, "%u%c",
+ llapi_printf(LLAPI_MSG_NORMAL, "%d%c",
scount, nl);
else
llapi_error(LLAPI_MSG_ERROR, rc,