Print error on thread init failure
[fio.git] / parse.c
diff --git a/parse.c b/parse.c
index 0636c6b3758ab2bf96c3a0a52a0efa94827fc184..5043374405d8a1e262687a5a1bdcac90f18990cf 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -46,7 +46,10 @@ static void show_option_range(struct fio_option *o)
        if (!o->minval && !o->maxval)
                return;
 
-       printf("%20s: min=%d, max=%d\n", "range", o->minval, o->maxval);
+       printf("%20s: min=%d", "range", o->minval);
+       if (o->maxval)
+               printf(", max=%d", o->maxval);
+       printf("\n");
 }
 
 static void show_option_values(struct fio_option *o)
@@ -425,6 +428,12 @@ static int __handle_option(struct fio_option *o, const char *ptr, void *data,
                ret = 1;
        }
 
+       if (ret)
+               return ret;
+
+       if (o->verify)
+               ret = o->verify(o, data);
+
        return ret;
 }