summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-12-18 21:51:21 -0700
committerJens Axboe <axboe@fb.com>2014-12-18 21:51:21 -0700
commit2243dfc796a8a6e137893a57a77949df7657dd71 (patch)
treec027a8a8657ed89f73afb35e356a0adda7936603 /options.c
parentf5a425247db49bf1c35738ab50d947c5550f9425 (diff)
downloadfio-2243dfc796a8a6e137893a57a77949df7657dd71.tar.gz
fio-2243dfc796a8a6e137893a57a77949df7657dd71.tar.bz2
options: add debug code for failure to lookup option names
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options.c b/options.c
index 80a7047e..6ceefbc1 100644
--- a/options.c
+++ b/options.c
@@ -4206,7 +4206,7 @@ int __fio_option_is_set(struct thread_options *o, unsigned int off1)
if (!opt) {
log_err("fio: no option found at offset %u\n", off1);
- return 0;
+ return -1;
}
opt_off = opt - &fio_options[0];