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>
This commit is contained in:
committed by
Jens Axboe
parent
ce8e2bc298
commit
eb9d065415
@@ -46,6 +46,8 @@ flags_string(struct io_uring_params *p)
|
|||||||
if (p->flags & IORING_SETUP_SQPOLL) {
|
if (p->flags & IORING_SETUP_SQPOLL) {
|
||||||
if (add_pipe)
|
if (add_pipe)
|
||||||
strncat(flagstr, "|", 64 - strlen(flagstr));
|
strncat(flagstr, "|", 64 - strlen(flagstr));
|
||||||
|
else
|
||||||
|
add_pipe = 1;
|
||||||
strncat(flagstr, "IORING_SETUP_SQPOLL", 64 - strlen(flagstr));
|
strncat(flagstr, "IORING_SETUP_SQPOLL", 64 - strlen(flagstr));
|
||||||
}
|
}
|
||||||
if (p->flags & IORING_SETUP_SQ_AFF) {
|
if (p->flags & IORING_SETUP_SQ_AFF) {
|
||||||
|
|||||||
Reference in New Issue
Block a user