diff --git a/obexd/src/logging.h b/obexd/src/logging.h
index 2b4386a..31947cf 100644
--- a/obexd/src/logging.h
+++ b/obexd/src/logging.h
*
*/
-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);