From 985ee30c1c9b61c834b38e2fbd13d0a19797602e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 26 Feb 2013 08:16:43 +0100 Subject: [PATCH] debug: make __dprint() have printf() like argument type checking Signed-off-by: Jens Axboe --- debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { \ -- 2.25.1