From eb9d0654152bb1debbcf359184d30229629cdf08 Mon Sep 17 00:00:00 2001 From: Shenghui Wang Date: Sun, 28 Apr 2019 09:18:08 +0800 Subject: 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 Signed-off-by: Shenghui Wang Signed-off-by: Jens Axboe --- test/io_uring_setup.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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) { -- cgit