diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-05-02 14:00:41 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-05-02 14:00:41 -0700 |
commit | 08774fa6c7d168a06eb13dd8c64b5c6afd41a9eb (patch) | |
tree | 03a9b44ea9c44495d546a158a945331977eaaf04 | |
parent | 924cbd78506f876296a47f63579977db4b2ffe9d (diff) |
Add printf format checking attribute
-rw-r--r-- | common/logging.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/logging.h b/common/logging.h index 40dc5ab5..95087339 100644 --- a/common/logging.h +++ b/common/logging.h @@ -24,9 +24,9 @@ #ifndef __LOGGING_H #define __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 toggle_debug(void); void enable_debug(void); void disable_debug(void); |