| .. | .. |
|---|
| 1 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 2 | | -/* Copyright (C) 2007-2018 B.A.T.M.A.N. contributors: |
|---|
| 2 | +/* Copyright (C) 2007-2020 B.A.T.M.A.N. contributors: |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * Marek Lindner, Simon Wunderlich |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or |
|---|
| 7 | | - * modify it under the terms of version 2 of the GNU General Public |
|---|
| 8 | | - * License as published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 11 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 13 | | - * General Public License for more details. |
|---|
| 14 | | - * |
|---|
| 15 | | - * You should have received a copy of the GNU General Public License |
|---|
| 16 | | - * along with this program; if not, see <http://www.gnu.org/licenses/>. |
|---|
| 17 | 5 | */ |
|---|
| 18 | 6 | |
|---|
| 19 | 7 | #ifndef _NET_BATMAN_ADV_LOG_H_ |
|---|
| .. | .. |
|---|
| 21 | 9 | |
|---|
| 22 | 10 | #include "main.h" |
|---|
| 23 | 11 | |
|---|
| 12 | +#include <linux/atomic.h> |
|---|
| 24 | 13 | #include <linux/bitops.h> |
|---|
| 25 | 14 | #include <linux/compiler.h> |
|---|
| 26 | 15 | #include <linux/printk.h> |
|---|
| .. | .. |
|---|
| 80 | 69 | __printf(2, 3); |
|---|
| 81 | 70 | |
|---|
| 82 | 71 | /** |
|---|
| 83 | | - * _batadv_dbg() - Store debug output with(out) ratelimiting |
|---|
| 72 | + * _batadv_dbg() - Store debug output with(out) rate limiting |
|---|
| 84 | 73 | * @type: type of debug message |
|---|
| 85 | 74 | * @bat_priv: the bat priv with all the soft interface information |
|---|
| 86 | 75 | * @ratelimited: whether output should be rate limited |
|---|
| 87 | 76 | * @fmt: format string |
|---|
| 88 | | - * @arg...: variable arguments |
|---|
| 77 | + * @arg: variable arguments |
|---|
| 89 | 78 | */ |
|---|
| 90 | 79 | #define _batadv_dbg(type, bat_priv, ratelimited, fmt, arg...) \ |
|---|
| 91 | 80 | do { \ |
|---|
| .. | .. |
|---|
| 106 | 95 | #endif |
|---|
| 107 | 96 | |
|---|
| 108 | 97 | /** |
|---|
| 109 | | - * batadv_dbg() - Store debug output without ratelimiting |
|---|
| 98 | + * batadv_dbg() - Store debug output without rate limiting |
|---|
| 110 | 99 | * @type: type of debug message |
|---|
| 111 | 100 | * @bat_priv: the bat priv with all the soft interface information |
|---|
| 112 | | - * @arg...: format string and variable arguments |
|---|
| 101 | + * @arg: format string and variable arguments |
|---|
| 113 | 102 | */ |
|---|
| 114 | 103 | #define batadv_dbg(type, bat_priv, arg...) \ |
|---|
| 115 | 104 | _batadv_dbg(type, bat_priv, 0, ## arg) |
|---|
| 116 | 105 | |
|---|
| 117 | 106 | /** |
|---|
| 118 | | - * batadv_dbg_ratelimited() - Store debug output with ratelimiting |
|---|
| 107 | + * batadv_dbg_ratelimited() - Store debug output with rate limiting |
|---|
| 119 | 108 | * @type: type of debug message |
|---|
| 120 | 109 | * @bat_priv: the bat priv with all the soft interface information |
|---|
| 121 | | - * @arg...: format string and variable arguments |
|---|
| 110 | + * @arg: format string and variable arguments |
|---|
| 122 | 111 | */ |
|---|
| 123 | 112 | #define batadv_dbg_ratelimited(type, bat_priv, arg...) \ |
|---|
| 124 | 113 | _batadv_dbg(type, bat_priv, 1, ## arg) |
|---|
| .. | .. |
|---|
| 127 | 116 | * batadv_info() - Store message in debug buffer and print it to kmsg buffer |
|---|
| 128 | 117 | * @net_dev: the soft interface net device |
|---|
| 129 | 118 | * @fmt: format string |
|---|
| 130 | | - * @arg...: variable arguments |
|---|
| 119 | + * @arg: variable arguments |
|---|
| 131 | 120 | */ |
|---|
| 132 | 121 | #define batadv_info(net_dev, fmt, arg...) \ |
|---|
| 133 | 122 | do { \ |
|---|
| .. | .. |
|---|
| 141 | 130 | * batadv_err() - Store error in debug buffer and print it to kmsg buffer |
|---|
| 142 | 131 | * @net_dev: the soft interface net device |
|---|
| 143 | 132 | * @fmt: format string |
|---|
| 144 | | - * @arg...: variable arguments |
|---|
| 133 | + * @arg: variable arguments |
|---|
| 145 | 134 | */ |
|---|
| 146 | 135 | #define batadv_err(net_dev, fmt, arg...) \ |
|---|
| 147 | 136 | do { \ |
|---|