From: Jens Axboe Date: Fri, 1 Dec 2017 04:29:32 +0000 (-0700) Subject: options: warn if we exceed the supported number of split entries X-Git-Tag: fio-3.3~30 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=c32e1a09dc24d570274172efb6d7686c0f0e1291;hp=6a16ece86385259dc522fcf1510a977557a82a07;ds=sidebyside options: warn if we exceed the supported number of split entries Signed-off-by: Jens Axboe --- diff --git a/options.c b/options.c index 30f79623..3fa646c0 100644 --- a/options.c +++ b/options.c @@ -110,8 +110,10 @@ static int split_parse_ddir(struct thread_options *o, struct split *split, split->val1[i] = val; split->val2[i] = perc; i++; - if (i == max_splits) + if (i == max_splits) { + log_err("fio: hit max of %d split entries\n", i); break; + } } split->nr = i;