parse: add debug output when enabled
authorJens Axboe <axboe@kernel.dk>
Thu, 25 Apr 2013 16:06:32 +0000 (10:06 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 25 Apr 2013 16:06:32 +0000 (10:06 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
parse.c

diff --git a/parse.c b/parse.c
index 63c94e3b264fabfa473087f02c9cdc48deb4b619..b8ec3aa86a4262849726ba3f3a5e4591b61c990c 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -451,6 +451,8 @@ static int __handle_option(struct fio_option *o, const char *ptr, void *data,
                else
                        ret = check_str_bytes(tmp, &ull, data);
 
+               dprint(FD_PARSE, "  ret=%d, out=%llu\n", ret, ull);
+
                if (ret)
                        break;
 
@@ -576,6 +578,8 @@ static int __handle_option(struct fio_option *o, const char *ptr, void *data,
                flp = td_var(data, o->off1);
                flp[curr].u.f = uf;
 
+               dprint(FD_PARSE, "  out=%f\n", uf);
+
                /*
                ** Calculate precision for output by counting
                ** number of digits after period. Find first
@@ -745,6 +749,8 @@ static int __handle_option(struct fio_option *o, const char *ptr, void *data,
                else
                        il = 1;
 
+               dprint(FD_PARSE, "  ret=%d, out=%d\n", ret, il);
+
                if (ret)
                        break;