about summary refs log tree commit diff
path: root/NEWS
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-12-23 15:01:07 +0100
committerFlorian Weimer <fweimer@redhat.com>2021-12-23 15:02:50 +0100
commit9702a7901e18460e8ffc5f56a493d41294a8e936 (patch)
tree0e7147c9c7e3d4cb14d3474c9dd947dcf64b38a9 /NEWS
parentcd0c333d2ea82d0ae14719bdbef86d99615bdb00 (diff)
downloadglibc-9702a7901e18460e8ffc5f56a493d41294a8e936.tar.gz
glibc-9702a7901e18460e8ffc5f56a493d41294a8e936.tar.xz
glibc-9702a7901e18460e8ffc5f56a493d41294a8e936.zip
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  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index c7200cd4e8..9294a7b953 100644
--- a/NEWS
+++ b/NEWS
@@ -99,6 +99,9 @@ Major new features:
   is set to 'madvise' mode while the latter uses the system reserved
   huge pages.
 
+* The printf family of functions now handles the flagged %#m conversion
+  specifier, printing errno as an error constant (similar to strerrorname_np).
+
 Deprecated and removed features, and other changes affecting compatibility:
 
 * On x86-64, the LD_PREFER_MAP_32BIT_EXEC environment variable support