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
@@ -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) {
