From 9702a7901e18460e8ffc5f56a493d41294a8e936 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 23 Dec 2021 15:01:07 +0100 Subject: stdio: Implement %#m for vfprintf and related functions %#m prints errno as an error constant if one is available, or a decimal number as a fallback. This intends to address the gap that strerrorname_np does not work well with printf for unknown error codes due to its NULL return values in those cases. Reviewed-by: Adhemerval Zanella --- stdio-common/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stdio-common/Makefile') diff --git a/stdio-common/Makefile b/stdio-common/Makefile index bbb3a2ca56..202439117e 100644 --- a/stdio-common/Makefile +++ b/stdio-common/Makefile @@ -71,7 +71,9 @@ tests := tstscanf test_rdwr test-popen tstgetln test-fseek \ tst-printf-fp-free \ tst-printf-fp-leak \ test-strerr \ - tst-printf-binary + tst-printf-binary \ + tst-sprintf-errno \ + # tests test-srcs = tst-unbputc tst-printf tst-printfsz-islongdouble -- cgit 1.4.1