summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/main.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2011-05-14 23:14:46 +0200
committerSven Eckelmann <sven@narfation.org>2011-05-30 07:39:29 +0200
commitd3a547be40008be590c169ff2d5d73cc7fada71d (patch)
treef844701c2a50e5f7e3138efa94f60d1622ae1ae0 /net/batman-adv/main.h
parent1b38bed562317701760b84cad12749985ceffb8b (diff)
downloadblackbird-op-linux-d3a547be40008be590c169ff2d5d73cc7fada71d.tar.gz
blackbird-op-linux-d3a547be40008be590c169ff2d5d73cc7fada71d.zip
batman-adv: Annotate functions with format strings
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r--net/batman-adv/main.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h
index 148b49e02642..ba28436bcdd6 100644
--- a/net/batman-adv/main.h
+++ b/net/batman-adv/main.h
@@ -136,7 +136,7 @@ void dec_module_count(void);
int is_my_mac(uint8_t *addr);
#ifdef CONFIG_BATMAN_ADV_DEBUG
-int debug_log(struct bat_priv *bat_priv, char *fmt, ...);
+int debug_log(struct bat_priv *bat_priv, char *fmt, ...) __printf(2, 3);
#define bat_dbg(type, bat_priv, fmt, arg...) \
do { \
@@ -145,6 +145,7 @@ int debug_log(struct bat_priv *bat_priv, char *fmt, ...);
} \
while (0)
#else /* !CONFIG_BATMAN_ADV_DEBUG */
+__printf(3, 4)
static inline void bat_dbg(char type __always_unused,
struct bat_priv *bat_priv __always_unused,
char *fmt __always_unused, ...)
OpenPOWER on IntegriCloud