From 49b4fda207a9e6a0689a43ecd5e1aa86f1f4b4b8 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Wed, 3 Nov 2021 18:08:55 +0100 Subject: HACKING.md: Add note about printf(3) fmt strings using "%m" The printf(3) format string character "%m" is available on Linux/glibc and FreeBSD, but not on MacOSX. So using "%m" should be limited to system specific code. --- HACKING.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'HACKING.md') diff --git a/HACKING.md b/HACKING.md index dde70bc8d..5594562db 100644 --- a/HACKING.md +++ b/HACKING.md @@ -356,3 +356,8 @@ for more details. compiler-specific flags to make files directly, as many of them are specific to one compiler and will cause the build to fail when using another. + + +* printf(3) format strings containing "%m" should only be used in + system specific code for systems which actually support "%m", like + Linux/glibc or FreeBSD. MacOSX for example does NOT support "%m". -- cgit v1.2.1