summaryrefslogtreecommitdiff
path: root/HACKING.md
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2021-11-03 18:08:55 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2021-11-03 18:10:33 +0100
commit49b4fda207a9e6a0689a43ecd5e1aa86f1f4b4b8 (patch)
tree7c9fc1395d599f1268cb3765d225cca90a611a91 /HACKING.md
parent9b9d6c68efb4cb0021767437b7b46aec8a19f361 (diff)
downloadlibgphoto2-49b4fda207a9e6a0689a43ecd5e1aa86f1f4b4b8.tar.gz
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.
Diffstat (limited to 'HACKING.md')
-rw-r--r--HACKING.md5
1 files changed, 5 insertions, 0 deletions
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".