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_swscanf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libio/tst_swscanf.c') diff --git a/libio/tst_swscanf.c b/libio/tst_swscanf.c index 372f0fc7d3..5d3582efd1 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; } -- cgit v1.2.3