summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-09-25 19:14:22 -0600
committerJens Axboe <axboe@kernel.dk>2018-09-25 19:14:22 -0600
commita69c9b57ddcff0cfaa481578ecbc4630b27b971f (patch)
tree1078c41b6803061efcd442e1c3072d58892bcb12 /parse.c
parent9f2cd5e0ccbce6b65276c1401cdcf2cb8b77b9ff (diff)
downloadfio-a69c9b57ddcff0cfaa481578ecbc4630b27b971f.tar.gz
fio-a69c9b57ddcff0cfaa481578ecbc4630b27b971f.tar.bz2
parse: print option name for out-of-range settings
Right now we just say we're out of range: max value out of range: 18446744073709551612 (4294967295 max) but we don't actually say which option this is. Add that. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.c b/parse.c
index 5d88d910..196de155 100644
--- a/parse.c
+++ b/parse.c
@@ -596,13 +596,13 @@ static int __handle_option(const struct fio_option *o, const char *ptr,
}
if (o->maxval && ull > o->maxval) {
- log_err("max value out of range: %llu"
- " (%llu max)\n", ull, o->maxval);
+ log_err("%s: max value out of range: %llu"
+ " (%llu max)\n", o->name, ull, o->maxval);
return 1;
}
if (o->minval && ull < o->minval) {
- log_err("min value out of range: %lld"
- " (%d min)\n", ull, o->minval);
+ log_err("%s: min value out of range: %lld"
+ " (%d min)\n", o->name, ull, o->minval);
return 1;
}
if (o->posval[0].ival) {