summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1999-09-04 20:36:27 +0000
committerjdp <jdp@FreeBSD.org>1999-09-04 20:36:27 +0000
commit1b393ac3a45f9d1ee77aa59f71f4a6a98a1be73d (patch)
treed256918f5d7924720308c67754c2a0a340ab71ee /libexec
parent112103bcfe414915f77b443be195fe90abb9f642 (diff)
downloadFreeBSD-src-1b393ac3a45f9d1ee77aa59f71f4a6a98a1be73d.zip
FreeBSD-src-1b393ac3a45f9d1ee77aa59f71f4a6a98a1be73d.tar.gz
Enable -Wformat checking for debug_printf().
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/debug.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/rtld-elf/debug.h b/libexec/rtld-elf/debug.h
index 8d57ec7..b356338 100644
--- a/libexec/rtld-elf/debug.h
+++ b/libexec/rtld-elf/debug.h
@@ -36,7 +36,9 @@
#error "This file must be compiled with GCC"
#endif
-extern void debug_printf(const char *, ...);
+#include <sys/cdefs.h>
+
+extern void debug_printf(const char *, ...) __printflike(1, 2);
extern int debug;
#ifdef DEBUG
OpenPOWER on IntegriCloud