projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d394449
)
parse: ensure that an option has a category
author
Jens Axboe
<axboe@kernel.dk>
Fri, 16 Mar 2012 17:58:39 +0000
(18:58 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 16 Mar 2012 17:58:39 +0000
(18:58 +0100)
If not, set it to misc and complain.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
parse.c
patch
|
blob
|
blame
|
history
diff --git
a/parse.c
b/parse.c
index 9891974d57bca8bd62752f78e421a8b6978d62f3..dd4e4dd06208233f0303193119f10758162682e5 100644
(file)
--- a/
parse.c
+++ b/
parse.c
@@
-1047,6
+1047,10
@@
void option_init(struct fio_option *o)
(o->roff1 || o->roff2 || o->roff3 || o->roff4))) {
log_err("Option %s: both cb and offset given\n", o->name);
}
+ if (!o->category) {
+ log_info("Options %s: no category defined. Setting to misc\n", o->name);
+ o->category = FIO_OPT_G_MISC;
+ }
}
/*