commit | 985ee30c1c9b61c834b38e2fbd13d0a19797602e | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Feb 26 08:16:43 2013 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Feb 26 08:16:43 2013 +0100 |
tree | 844499e9c1cc3e7a93d02c3eafc3a452d60505d2 | |
parent | 8037423f08649a7c3378dadf95327d6553105264 [diff] |
debug: make __dprint() have printf() like argument type checking Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/debug.h b/debug.h index af71d62..6dd2ad8 100644 --- a/debug.h +++ b/debug.h
@@ -34,7 +34,7 @@ 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 { \