diff options
author | Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> | 2022-09-01 10:02:30 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-09-22 08:48:04 -0300 |
commit | de477abcaaabb1f9815cb63876637a47a95e7ac1 (patch) | |
tree | 22bd98fe9a4aaa03257147db719e844fcdb42f7a /libio/tst-ext.c | |
parent | 340097d0b50eff9d3058e06c6989ae398c653d4a (diff) | |
download | glibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.zip glibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.tar.gz glibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.tar.bz2 |
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 <fweimer@redhat.com>
Diffstat (limited to 'libio/tst-ext.c')
-rw-r--r-- | libio/tst-ext.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libio/tst-ext.c b/libio/tst-ext.c index f69fbe6..c987b1b 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; } |