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 --- gmon/tst-sprofil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gmon') diff --git a/gmon/tst-sprofil.c b/gmon/tst-sprofil.c index a927e737b2..de5a4e5198 100644 --- a/gmon/tst-sprofil.c +++ b/gmon/tst-sprofil.c @@ -161,7 +161,7 @@ main (int argc, char **argv) for (i = 0; i < NELEMS (taddr); ++i) for (j = 0; j < 0x10000 / sizeof (int); ++j) if (buf[i][j] != 0) - printf ("%0*Zx\t%u\t(buffer %d)\n", + printf ("%0*zx\t%u\t(buffer %d)\n", (int) (sizeof (size_t) * 2), (taddr[i] + ((char *) &buf[i][j] - (char *) &buf[i][0])), buf[i][j], i); -- cgit 1.4.1