From 639b538a999cb27db08a46332b01dde1285f8a64 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 25 Feb 2012 13:04:11 +0100 Subject: [PATCH] debug: enable printf format checking for lt_debug --- common/lt_debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lt_debug.h b/common/lt_debug.h index 13b08d1..42464b9 100644 --- a/common/lt_debug.h +++ b/common/lt_debug.h @@ -13,7 +13,7 @@ extern int debuglevel; -void _lt_debug(int facility, const void *, const char *fmt, ...); -void _lt_info(int facility, const void *, const char *fmt, ...); +void _lt_debug(int facility, const void *, const char *fmt, ...) __attribute__ ((format (printf, 3, 4))); +void _lt_info(int facility, const void *, const char *fmt, ...) __attribute__ ((format (printf, 3, 4))); void lt_debug_init(void); #endif