[PATCH] Print an error when parsing a job option fails
authorJens Axboe <jens.axboe@oracle.com>
Thu, 2 Nov 2006 07:45:53 +0000 (08:45 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 2 Nov 2006 07:45:53 +0000 (08:45 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
parse.c

diff --git a/parse.c b/parse.c
index 399aae4..7af6be1 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -240,6 +240,9 @@ static int handle_option(struct fio_option *o, const char *ptr, void *data)
                ret = 1;
        }
 
+       if (ret)
+               fprintf(stderr, "fio: failed parsing %s=%s\n", o->name, ptr);
+
        return ret;
 }