Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255299
b: refs/heads/master
c: d3a547b
h: refs/heads/master
i:
  255297: 7557cce
  255295: 21a91ee
v: v3
  • Loading branch information
Sven Eckelmann committed May 30, 2011
1 parent 262f2b0 commit c09968f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b38bed562317701760b84cad12749985ceffb8b
refs/heads/master: d3a547be40008be590c169ff2d5d73cc7fada71d
1 change: 1 addition & 0 deletions trunk/net/batman-adv/bat_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ static void emit_log_char(struct debug_log *debug_log, char c)
debug_log->log_start = debug_log->log_end - log_buff_len;
}

__printf(2, 3)
static int fdebug_log(struct debug_log *debug_log, char *fmt, ...)
{
va_list args;
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/batman-adv/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 { \
Expand All @@ -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, ...)
Expand Down

0 comments on commit c09968f

Please sign in to comment.