backend: regrow logs for sync IO engines as well
[fio.git] / parse.c
diff --git a/parse.c b/parse.c
index ac1bee9c296ece240613d8759725aa2efe2b4233..963f1f8cdc1f25f26a77a4471aa04a7c617fa43f 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -15,6 +15,7 @@
 #include "parse.h"
 #include "debug.h"
 #include "options.h"
+#include "optgroup.h"
 #include "minmax.h"
 #include "lib/ieee754.h"
 #include "lib/pow2.h"
@@ -1233,6 +1234,8 @@ void option_init(struct fio_option *o)
 {
        if (o->type == FIO_OPT_DEPRECATED)
                return;
+       if (o->name && !o->lname)
+               log_err("Option %s: missing long option name\n", o->name);
        if (o->type == FIO_OPT_BOOL) {
                o->minval = 0;
                o->maxval = 1;