diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-05-02 14:01:05 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-05-02 14:01:05 -0700 |
commit | 1411a2c2023cff63fb287dfc8947103480e154d2 (patch) | |
tree | 4f7985368208d949566ee35b1843e23b8037e43c /src | |
parent | 1efd0a778dd55262a1eab91a4cac7dcb2c810b2f (diff) | |
download | obexd-1411a2c2023cff63fb287dfc8947103480e154d2.tar.gz |
Add printf format checking attribute
Diffstat (limited to 'src')
-rw-r--r-- | src/logging.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logging.h b/src/logging.h index 2b4386a..31947cf 100644 --- a/src/logging.h +++ b/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); |