summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShenghui Wang <shhuiw@foxmail.com>2019-04-28 09:18:08 +0800
committerJens Axboe <axboe@kernel.dk>2019-05-01 10:06:02 -0600
commiteb9d0654152bb1debbcf359184d30229629cdf08 (patch)
tree0feb1679ae7b3acaea2ad50602d1292664775bba /test
parentce8e2bc298c7dc8604a908136b9563ff6b986674 (diff)
liburing: improve output for test/io_uring_setup.c
For the IORING_SETUP_SQPOLL|IORING_SETUP_SQ_AFF test case, add_pipe is not set, and the output is like: "...flags: IORING_SETUP_SQPOLLIORING_SETUP_SQ_AFF...". Set add_pipe for IORING_SETUP_SQPOLL flag so that the output is like: "...flags: IORING_SETUP_SQPOLL|IORING_SETUP_SQ_AFF...". Acked-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Shenghui Wang <shhuiw@foxmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test')
-rw-r--r--test/io_uring_setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/io_uring_setup.c b/test/io_uring_setup.c
index 2b76402..19fb8c5 100644
--- a/test/io_uring_setup.c
+++ b/test/io_uring_setup.c
@@ -46,6 +46,8 @@ flags_string(struct io_uring_params *p)
if (p->flags & IORING_SETUP_SQPOLL) {
if (add_pipe)
strncat(flagstr, "|", 64 - strlen(flagstr));
+ else
+ add_pipe = 1;
strncat(flagstr, "IORING_SETUP_SQPOLL", 64 - strlen(flagstr));
}
if (p->flags & IORING_SETUP_SQ_AFF) {