From 3b850f2b8bb177f1efd85dc353cf0115cd1a4723 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 2 May 2009 14:01:05 -0700 Subject: [PATCH] obexd: Add printf format checking attribute --- obexd/src/logging.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/obexd/src/logging.h b/obexd/src/logging.h index 2b4386ac0..31947cff6 100644 --- a/obexd/src/logging.h +++ b/obexd/src/logging.h @@ -21,9 +21,9 @@ * */ -void info(const char *format, ...); -void error(const char *format, ...); -void debug(const char *format, ...); +void info(const char *format, ...) __attribute__((format(printf, 1, 2))); +void error(const char *format, ...) __attribute__((format(printf, 1, 2))); +void debug(const char *format, ...) __attribute__((format(printf, 1, 2))); void obex_debug(int evt, int cmd, int rsp); void toggle_debug(void); void enable_debug(void); -- 2.47.3