summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-02-26 08:16:43 +0100
committerJens Axboe <axboe@kernel.dk>2013-02-26 08:16:43 +0100
commit985ee30c1c9b61c834b38e2fbd13d0a19797602e (patch)
tree844499e9c1cc3e7a93d02c3eafc3a452d60505d2 /debug.h
parent8037423f08649a7c3378dadf95327d6553105264 (diff)
downloadfio-985ee30c1c9b61c834b38e2fbd13d0a19797602e.tar.gz
fio-985ee30c1c9b61c834b38e2fbd13d0a19797602e.tar.bz2
debug: make __dprint() have printf() like argument type checking
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug.h b/debug.h
index af71d625..6dd2ad86 100644
--- a/debug.h
+++ b/debug.h
@@ -34,7 +34,7 @@ extern struct debug_level debug_levels[];
extern unsigned long fio_debug;
-void __dprint(int type, const char *str, ...);
+void __dprint(int type, const char *str, ...) __attribute__((format (printf, 2, 3)));
#define dprint(type, str, args...) \
do { \