From a69c9b57ddcff0cfaa481578ecbc4630b27b971f Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 25 Sep 2018 19:14:22 -0600 Subject: [PATCH] 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 --- parse.c | 8 ++++---- 1 file 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) { -- 2.25.1