From: Jens Axboe Date: Thu, 25 Apr 2013 16:06:32 +0000 (-0600) Subject: parse: add debug output when enabled X-Git-Tag: fio-2.1~13 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=ae3fcb5afb2479f142912e64cad3c271541af5fe parse: add debug output when enabled Signed-off-by: Jens Axboe --- diff --git a/parse.c b/parse.c index 63c94e3b..b8ec3aa8 100644 --- 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;