From: Jens Axboe Date: Fri, 27 Aug 2021 18:44:02 +0000 (-0600) Subject: t/io_uring: pretty up multi-file depths X-Git-Tag: fio-3.28~17 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=26976a134e44f583f91e05df95ef8ec5a9cc968d;p=fio.git t/io_uring: pretty up multi-file depths Signed-off-by: Jens Axboe --- diff --git a/t/io_uring.c b/t/io_uring.c index 538cc7d4..607c7946 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -515,6 +515,7 @@ static int setup_ring(struct submitter *s) static void file_depths(char *buf) { + bool prev = false; char *p; int i, j; @@ -526,10 +527,11 @@ static void file_depths(char *buf) for (i = 0; i < s->nr_files; i++) { struct file *f = &s->files[i]; - if (i + 1 == s->nr_files) - p += sprintf(p, "%d", f->pending_ios); + if (prev) + p += sprintf(p, " %d", f->pending_ios); else - p += sprintf(p, "%d, ", f->pending_ios); + p += sprintf(p, "%d ", f->pending_ios); + prev = true; } } }