projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd70e36
)
t/io_uring: pretty up multi-file depths
author
Jens Axboe
<axboe@kernel.dk>
Fri, 27 Aug 2021 18:44:02 +0000
(12:44 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 27 Aug 2021 18:44:02 +0000
(12:44 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/t/io_uring.c
b/t/io_uring.c
index 538cc7d4e44c99b0dfbde4502780334be7d89b6a..607c79461929ebd6b53294984877b2ea75c0c98f 100644
(file)
--- 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;
}
}
}