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 --- libio/tst-ext.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libio/tst-ext.c') diff --git a/libio/tst-ext.c b/libio/tst-ext.c index f69fbe6f21..c987b1bafc 100644 --- a/libio/tst-ext.c +++ b/libio/tst-ext.c @@ -25,8 +25,8 @@ main (void) /* Get the buffer size. */ if (__fbufsize (fp) != sizeof buf) { - printf ("__fbusize() reported a buffer size of %Zd bytes;" - " we installed a buffer with %Zd bytes\n", + printf ("__fbusize() reported a buffer size of %zd bytes;" + " we installed a buffer with %zd bytes\n", __fbufsize (fp), sizeof buf); result = 1; } @@ -91,7 +91,7 @@ main (void) /* The string we wrote above should still be in the buffer. */ if (__fpending (fp) != strlen (teststring)) { - printf ("__fpending() returned %Zd; expected %Zd\n", + printf ("__fpending() returned %zd; expected %zd\n", __fpending (fp), strlen (teststring)); result = 1; } @@ -100,7 +100,7 @@ main (void) /* And check again. */ if (__fpending (fp) != 0) { - printf ("__fpending() returned %Zd; expected 0\n", + printf ("__fpending() returned %zd; expected 0\n", __fpending (fp)); result = 1; } -- cgit v1.2.3