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 +- rt/tst-aio64.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'rt') 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); diff --git a/rt/tst-aio64.c b/rt/tst-aio64.c index 89129160ab..f598ac097d 100644 --- a/rt/tst-aio64.c +++ b/rt/tst-aio64.c @@ -275,7 +275,7 @@ do_test (int argc, char *argv[]) for (cnt = 10; cnt > 0; ) if (aio_cancel64 (fd, cbp[--cnt]) == -1) /* This is not an error. The request can simply be finished. */ - printf ("aio_cancel64 (fd, cbp[%Zd]) cannot be canceled\n", cnt); + printf ("aio_cancel64 (fd, cbp[%zd]) cannot be canceled\n", cnt); puts ("finished2"); result |= do_wait (cbp, 10, ECANCELED); -- cgit 1.4.1