From: Jens Axboe Date: Tue, 26 Feb 2013 07:16:43 +0000 (+0100) Subject: debug: make __dprint() have printf() like argument type checking X-Git-Tag: fio-2.0.15~52 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=985ee30c1c9b61c834b38e2fbd13d0a19797602e;p=fio.git debug: make __dprint() have printf() like argument type checking Signed-off-by: Jens Axboe --- 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 { \