summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2019-09-06 19:51:10 +0100
committerHristo Venev <hristo@venev.name>2019-09-06 20:08:24 +0100
commit1308a91624a6c093781e5e46e93221bb87b7e1c2 (patch)
treea3744f16c2894cee109077b0cace90372fcf743e
parentdfdf94f214c96d5f74f9879df9e924ebb651f00a (diff)
liburing/test: There are now 4 reserved fields
Signed-off-by: Hristo Venev <hristo@venev.name>
-rw-r--r--test/io_uring_setup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/io_uring_setup.c b/test/io_uring_setup.c
index 2dd3763..73b0398 100644
--- a/test/io_uring_setup.c
+++ b/test/io_uring_setup.c
@@ -67,8 +67,8 @@ dump_resv(struct io_uring_params *p)
if (!p)
return "";
- sprintf(resvstr, "0x%.8x 0x%.8x 0x%.8x 0x%.8x 0x%.8x", p->resv[0],
- p->resv[1], p->resv[2], p->resv[3], p->resv[4]);
+ sprintf(resvstr, "0x%.8x 0x%.8x 0x%.8x 0x%.8x", p->resv[0],
+ p->resv[1], p->resv[2], p->resv[3]);
return resvstr;
}
@@ -118,7 +118,7 @@ main(int argc, char **argv)
/* resv array is non-zero */
memset(&p, 0, sizeof(p));
- p.resv[0] = p.resv[1] = p.resv[2] = p.resv[3] = p.resv[4] = 1;
+ p.resv[0] = p.resv[1] = p.resv[2] = p.resv[3] = 1;
status |= try_io_uring_setup(1, &p, -1, EINVAL);
/* invalid flags */