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 dddcb8e..35410b2 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;
                        }
                }