From: Jens Axboe Date: Wed, 1 Jul 2009 07:06:12 +0000 (+0200) Subject: Only show maxval in --cmdhelp if it is given X-Git-Tag: fio-1.29-rc1~6 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=3980127d55c6b1773274bc854aae4589aa3f785a Only show maxval in --cmdhelp if it is given Signed-off-by: Jens Axboe --- diff --git a/parse.c b/parse.c index 0636c6b3..1b38db5c 100644 --- 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)