projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parse: ensure that an option has a category
[fio.git]
/
parse.c
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;
+ }
}
/*