[PATCH] Use '%z' instead of '%Z' on printf functions

Florian Weimer fweimer@redhat.com
Thu Sep 22 10:44:18 GMT 2022


* Adhemerval Zanella via Libc-alpha:

> The Z modifier is a nonstandard synonymn for z (that predates z
> itself) and compiler might issue an warning for in invalid
> conversion specifier.
> ---
>  catgets/gencat.c                  |  6 +++---
>  elf/dl-load.c                     |  2 +-
>  elf/dl-printf.c                   |  2 +-
>  elf/dl-tunables.c                 |  2 +-
>  elf/rtld.c                        |  6 +++---
>  elf/sprof.c                       | 12 ++++++------
>  elf/tst-dlmodcount.c              |  2 +-
>  elf/tst-tls-dlinfo.c              |  2 +-
>  gmon/tst-sprofil.c                |  2 +-
>  iconv/iconv_charmap.c             |  2 +-
>  libio/tst-ext.c                   |  8 ++++----
>  libio/tst-widetext.c              | 10 +++++-----
>  libio/tst_swprintf.c              |  6 +++---
>  libio/tst_swscanf.c               |  4 ++--
>  locale/programs/ld-collate.c      |  8 ++++----
>  locale/programs/ld-ctype.c        |  4 ++--
>  localedata/bug-iconv-trans.c      |  4 ++--
>  localedata/tst-iconv-math-trans.c |  4 ++--
>  math/test-tgmath-ret.c            |  2 +-
>  nptl/tst-rwlock6.c                | 12 ++++++------
>  nptl/tst-rwlock7.c                | 16 ++++++++--------
>  posix/runptests.c                 |  2 +-
>  posix/wordexp-test.c              |  4 ++--
>  rt/tst-aio.c                      |  2 +-
>  rt/tst-aio64.c                    |  2 +-
>  string/tester.c                   |  2 +-
>  string/tst-strlen.c               |  4 ++--
>  time/tst-strftime.c               |  6 +++---
>  wcsmbs/wcsmbs-tst1.c              |  2 +-
>  29 files changed, 70 insertions(+), 70 deletions(-)

This looks okay to me.  I reviewed the changes and built this on i686
and x86-64.

Reviewed-by: Florian Weimer <fweimer@redhat.com>

Thanks,
Florian



More information about the Libc-alpha mailing list