From 7695aaa56ffb0c6feb0f6f5ef8df316da9d092b8 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 15 Dec 2006 10:18:57 +0000 Subject: [PATCH] * Add a printf attribute to the debug function to trap errors. --- src/debug.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/debug.h b/src/debug.h index ba6ad6b..0bef349 100644 --- a/src/debug.h +++ b/src/debug.h @@ -16,6 +16,8 @@ * debug.h: debugging support */ -extern void zzuf_debug(const char *format, ...); +extern void zzuf_debug(const char *format, ...) + __attribute__((__format__(__printf__, 1, 2))); + #define debug zzuf_debug