options: warn if we exceed the supported number of split entries
authorJens Axboe <axboe@kernel.dk>
Fri, 1 Dec 2017 04:29:32 +0000 (21:29 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Dec 2017 04:29:32 +0000 (21:29 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
options.c

index 30f796238f22038d60e43b419fb9e79d76a1ce23..3fa646c0f364c97c3671cb676e8f5ec830ac3a89 100644 (file)
--- 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++;
                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;
                        break;
+               }
        }
 
        split->nr = i;
        }
 
        split->nr = i;