summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-10-25 13:06:40 -0600
committerJens Axboe <axboe@kernel.dk>2017-10-25 13:06:40 -0600
commitff523a66e5af357e67602caf33de1e2cd0521b08 (patch)
treedc73cf5d3aa1ed2947d342c56ddb628b3871ad30 /parse.c
parent71aa48eb4eed51adb719d159810ab0044b2a7154 (diff)
downloadfio-ff523a66e5af357e67602caf33de1e2cd0521b08.tar.gz
fio-ff523a66e5af357e67602caf33de1e2cd0521b08.tar.bz2
parse: minimum options values are signed
Rebecca reports that using an invalid value for the nice parameter yields: min value out of range: 18446744073709551596 (4294967277 min) where it really should be: min value out of range: -20 (-19 min) Print the minimum values as signed, if we hit the out-of-range error. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index ecce8b89..68229d05 100644
--- a/parse.c
+++ b/parse.c
@@ -556,8 +556,8 @@ static int __handle_option(struct fio_option *o, const char *ptr, void *data,
return 1;
}
if (o->minval && ull < o->minval) {
- log_err("min value out of range: %llu"
- " (%u min)\n", ull, o->minval);
+ log_err("min value out of range: %lld"
+ " (%d min)\n", ull, o->minval);
return 1;
}
if (o->posval[0].ival) {