about summary refs log tree commit diff
path: root/elf/dl-printf.c
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 /elf/dl-printf.c
parent340097d0b50eff9d3058e06c6989ae398c653d4a (diff)
downloadglibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.tar.gz
glibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.tar.xz
glibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.zip
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 'elf/dl-printf.c')
-rw-r--r--elf/dl-printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-printf.c b/elf/dl-printf.c
index d3264ba96c..429d2e80c2 100644
--- a/elf/dl-printf.c
+++ b/elf/dl-printf.c
@@ -113,7 +113,7 @@ _dl_debug_vdprintf (int fd, int tag_p, const char *fmt, va_list arg)
 	  /* Recognize the l modifier.  It is only important on some
 	     platforms where long and int have a different size.  We
 	     can use the same code for size_t.  */
-	  if (*fmt == 'l' || *fmt == 'Z')
+	  if (*fmt == 'l' || *fmt == 'z')
 	    {
 #if LONG_MAX != INT_MAX
 	      long_mod = 1;