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_swscanf.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_swscanf.c')
-rw-r--r-- | libio/tst_swscanf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/tst_swscanf.c b/libio/tst_swscanf.c index 372f0fc..5d3582e 100644 --- a/libio/tst_swscanf.c +++ b/libio/tst_swscanf.c @@ -20,7 +20,7 @@ main (int argc, char *argv[]) n = swscanf (in, L"%d + %d is %d", &a, &b, &c); if (n != 3 || a + b != c || c != 42) { - printf ("*** FAILED, n = %Zu, a = %d, b = %d, c = %d\n", n, a, b, c); + printf ("*** FAILED, n = %zu, a = %d, b = %d, c = %d\n", n, a, b, c); result = 1; } @@ -30,7 +30,7 @@ main (int argc, char *argv[]) if (n != 5 || strcmp (buf1, "one") != 0 || wcscmp (wbuf2, L"two") != 0 || strcmp (buf3, "three") != 0 || c4 != '!' || wc5 != L'!') { - printf ("*** FAILED, n = %Zu, buf1 = \"%s\", wbuf2 = L\"%S\", buf3 = \"%s\", c4 = '%c', wc5 = L'%C'\n", + printf ("*** FAILED, n = %zu, buf1 = \"%s\", wbuf2 = L\"%S\", buf3 = \"%s\", c4 = '%c', wc5 = L'%C'\n", n, buf1, wbuf2, buf3, c4, (wint_t) wc5); result = 1; } |