diff options
Diffstat (limited to 'net/batman-adv/bat_debugfs.c')
-rw-r--r-- | net/batman-adv/bat_debugfs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/batman-adv/bat_debugfs.c b/net/batman-adv/bat_debugfs.c index 0ae81d07f102..0e9d43509935 100644 --- a/net/batman-adv/bat_debugfs.c +++ b/net/batman-adv/bat_debugfs.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2010 B.A.T.M.A.N. contributors: | 2 | * Copyright (C) 2010-2011 B.A.T.M.A.N. contributors: |
3 | * | 3 | * |
4 | * Marek Lindner | 4 | * Marek Lindner |
5 | * | 5 | * |
@@ -52,7 +52,6 @@ static void emit_log_char(struct debug_log *debug_log, char c) | |||
52 | 52 | ||
53 | static int fdebug_log(struct debug_log *debug_log, char *fmt, ...) | 53 | static int fdebug_log(struct debug_log *debug_log, char *fmt, ...) |
54 | { | 54 | { |
55 | int printed_len; | ||
56 | va_list args; | 55 | va_list args; |
57 | static char debug_log_buf[256]; | 56 | static char debug_log_buf[256]; |
58 | char *p; | 57 | char *p; |
@@ -62,8 +61,7 @@ static int fdebug_log(struct debug_log *debug_log, char *fmt, ...) | |||
62 | 61 | ||
63 | spin_lock_bh(&debug_log->lock); | 62 | spin_lock_bh(&debug_log->lock); |
64 | va_start(args, fmt); | 63 | va_start(args, fmt); |
65 | printed_len = vscnprintf(debug_log_buf, sizeof(debug_log_buf), | 64 | vscnprintf(debug_log_buf, sizeof(debug_log_buf), fmt, args); |
66 | fmt, args); | ||
67 | va_end(args); | 65 | va_end(args); |
68 | 66 | ||
69 | for (p = debug_log_buf; *p != 0; p++) | 67 | for (p = debug_log_buf; *p != 0; p++) |