summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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 */