aboutsummaryrefslogtreecommitdiff
path: root/localedata
diff options
context:
space:
mode:
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>2022-09-01 10:02:30 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-09-22 08:48:04 -0300
commitde477abcaaabb1f9815cb63876637a47a95e7ac1 (patch)
tree22bd98fe9a4aaa03257147db719e844fcdb42f7a /localedata
parent340097d0b50eff9d3058e06c6989ae398c653d4a (diff)
downloadglibc-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 'localedata')
-rw-r--r--localedata/bug-iconv-trans.c4
-rw-r--r--localedata/tst-iconv-math-trans.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/localedata/bug-iconv-trans.c b/localedata/bug-iconv-trans.c
index 3886247..f1a0416 100644
--- a/localedata/bug-iconv-trans.c
+++ b/localedata/bug-iconv-trans.c
@@ -36,7 +36,7 @@ main (void)
if (n == (size_t) -1)
printf ("iconv() returned error: %m\n");
else
- printf ("iconv() returned %Zd, expected 7\n", n);
+ printf ("iconv() returned %zd, expected 7\n", n);
result = 1;
}
if (inlen != 0)
@@ -57,7 +57,7 @@ main (void)
}
else if (outlen != sizeof (outbuf) - sizeof (expected))
{
- printf ("outlen wrong: %Zd, expected %Zd\n", outlen,
+ printf ("outlen wrong: %zd, expected %zd\n", outlen,
sizeof (outbuf) - 15);
result = 1;
}
diff --git a/localedata/tst-iconv-math-trans.c b/localedata/tst-iconv-math-trans.c
index a2d01a7..34c62eb 100644
--- a/localedata/tst-iconv-math-trans.c
+++ b/localedata/tst-iconv-math-trans.c
@@ -70,7 +70,7 @@ do_test (void)
if (n == (size_t) -1)
printf ("iconv() returned error: %m\n");
else
- printf ("iconv() returned %Zd, expected 24\n", n);
+ printf ("iconv() returned %zd, expected 24\n", n);
result = 1;
}
if (inlen != 0)
@@ -91,7 +91,7 @@ do_test (void)
}
else if (outlen != sizeof (outbuf) - sizeof (expected))
{
- printf ("outlen wrong: %Zd, expected %Zd\n", outlen,
+ printf ("outlen wrong: %zd, expected %zd\n", outlen,
sizeof (outbuf) - 15);
result = 1;
}