Signed-off-by: Jens Axboe <axboe@kernel.dk>
while (len < FIO_IO_U_LIST_MAX_LEN && plist[len].u.f != 0.0)
len++;
while (len < FIO_IO_U_LIST_MAX_LEN && plist[len].u.f != 0.0)
len++;
/*
* Sort the percentile list. Note that it may already be sorted if
* we are using the default values, but since it's a short list this
/*
* Sort the percentile list. Note that it may already be sorted if
* we are using the default values, but since it's a short list this
sprintf(fbuf, "%2.2f", plist[j].u.f);
log_info(" %sth=[%5u]%c", fbuf, plat_idx_to_val(i),
sprintf(fbuf, "%2.2f", plist[j].u.f);
log_info(" %sth=[%5u]%c", fbuf, plat_idx_to_val(i),
- (is_last? '\n' : ','));
if (is_last)
break;
if (j % 4 == 3) /* for formatting */
log_info("\n");
if (is_last)
break;
if (j % 4 == 3) /* for formatting */
log_info("\n");
+ if (++j == FIO_IO_U_LIST_MAX_LEN)
+ break;