From b374f6d47e4953aa20795ac6b5ba2709dab382cf Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 5 May 2009 17:55:52 -0700 Subject: Add printf format checking attribute --- include/log.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/log.h') diff --git a/include/log.h b/include/log.h index e9ee8e49..d154ba7c 100644 --- a/include/log.h +++ b/include/log.h @@ -32,9 +32,12 @@ extern "C" { * @short_description: Functions for logging error and debug information */ -extern void connman_info(const char *format, ...); -extern void connman_error(const char *format, ...); -extern void connman_debug(const char *format, ...); +extern void connman_info(const char *format, ...) + __attribute__((format(printf, 1, 2))); +extern void connman_error(const char *format, ...) + __attribute__((format(printf, 1, 2))); +extern void connman_debug(const char *format, ...) + __attribute__((format(printf, 1, 2))); /** * DBG: -- cgit v1.2.3