[PATCH] Use '%z' instead of '%Z' on printf functions
Joseph Myers
joseph@codesourcery.com
Wed Aug 31 19:34:11 GMT 2022
On Wed, 31 Aug 2022, Adhemerval Zanella via Libc-alpha wrote:
> The Z modifier is a nonstandard synonymn for z (that predates z
> itself) and compiler might issue an warning for in invalid
> conversion specifier.
> stdio-common/bug1.c | 4 ++--
> stdio-common/bug5.c | 2 +-
> stdio-common/test_rdwr.c | 10 +++++-----
> stdio-common/tst-fphex.c | 4 ++--
> stdio-common/tstgetln.c | 2 +-
Where changing testcases, have you made sure that there is still adequate
test coverage for the %Z extension (possibly in tests dedicated to that
purpose rather than incidental use in other tests)? (For everything
outside of stdio tests, using %z certainly makes sense.)
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list