options: warn if we exceed the supported number of split entries
[fio.git] / 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;