From 1308a91624a6c093781e5e46e93221bb87b7e1c2 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Fri, 6 Sep 2019 19:51:10 +0100 Subject: liburing/test: There are now 4 reserved fields Signed-off-by: Hristo Venev --- test/io_uring_setup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 */ -- cgit