From de477abcaaabb1f9815cb63876637a47a95e7ac1 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Netto Date: Thu, 1 Sep 2022 10:02:30 -0300 Subject: Use '%z' instead of '%Z' on printf functions The Z modifier is a nonstandard synonymn for z (that predates z itself) and compiler might issue an warning for in invalid conversion specifier. Reviewed-by: Florian Weimer --- rt/tst-aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rt/tst-aio.c') diff --git a/rt/tst-aio.c b/rt/tst-aio.c index 62a1dee78f..c7e9cd55ee 100644 --- a/rt/tst-aio.c +++ b/rt/tst-aio.c @@ -274,7 +274,7 @@ do_test (int argc, char *argv[]) for (cnt = 10; cnt > 0; ) if (aio_cancel (fd, cbp[--cnt]) == -1) /* This is not an error. The request can simply be finished. */ - printf ("aio_cancel (fd, cbp[%Zd]) cannot be canceled\n", cnt); + printf ("aio_cancel (fd, cbp[%zd]) cannot be canceled\n", cnt); puts ("finished2"); result |= do_wait (cbp, 10, ECANCELED); -- cgit v1.2.1