parse: for option with posval, dump allowed values on failure
authorJens Axboe <axboe@kernel.dk>
Wed, 10 Apr 2013 09:06:34 +0000 (11:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Apr 2013 09:06:34 +0000 (11:06 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
parse.c

diff --git a/parse.c b/parse.c
index dddcb8e51cc007634c60050de0a812f7518ca8c1..35410b2ecf06f4a935a968dd61416309ae04c2c3 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -479,7 +479,8 @@ static int __handle_option(struct fio_option *o, const char *ptr, void *data,
                                }
                        }
                        if (ret) {
-                               log_err("value %d not in allowed range\n",ull);
+                               log_err("fio: value %llu not allowed:\n", ull);
+                               show_option_values(o);
                                return 1;
                        }
                }