X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=parse.c;h=b8ec3aa86a4262849726ba3f3a5e4591b61c990c;hb=4b20c6814d4742e27a68f8a740a955283869fbcd;hp=e8b628cee7be114d2579aa5a1d2fe75515653127;hpb=b7f487cf80a8299a656df9c2214ff73e72956d71;p=fio.git diff --git a/parse.c b/parse.c index e8b628ce..b8ec3aa8 100644 --- a/parse.c +++ b/parse.c @@ -285,7 +285,7 @@ int check_str_bytes(const char *p, long long *val, void *data) return str_to_decimal(p, val, 1, data); } -static int check_str_time(const char *p, long long *val) +int check_str_time(const char *p, long long *val) { return str_to_decimal(p, val, 0, NULL); } @@ -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;