hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/net/batman-adv/log.h
....@@ -1,19 +1,7 @@
11 /* 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:
33 *
44 * 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/>.
175 */
186
197 #ifndef _NET_BATMAN_ADV_LOG_H_
....@@ -21,6 +9,7 @@
219
2210 #include "main.h"
2311
12
+#include <linux/atomic.h>
2413 #include <linux/bitops.h>
2514 #include <linux/compiler.h>
2615 #include <linux/printk.h>
....@@ -80,12 +69,12 @@
8069 __printf(2, 3);
8170
8271 /**
83
- * _batadv_dbg() - Store debug output with(out) ratelimiting
72
+ * _batadv_dbg() - Store debug output with(out) rate limiting
8473 * @type: type of debug message
8574 * @bat_priv: the bat priv with all the soft interface information
8675 * @ratelimited: whether output should be rate limited
8776 * @fmt: format string
88
- * @arg...: variable arguments
77
+ * @arg: variable arguments
8978 */
9079 #define _batadv_dbg(type, bat_priv, ratelimited, fmt, arg...) \
9180 do { \
....@@ -106,19 +95,19 @@
10695 #endif
10796
10897 /**
109
- * batadv_dbg() - Store debug output without ratelimiting
98
+ * batadv_dbg() - Store debug output without rate limiting
11099 * @type: type of debug message
111100 * @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
113102 */
114103 #define batadv_dbg(type, bat_priv, arg...) \
115104 _batadv_dbg(type, bat_priv, 0, ## arg)
116105
117106 /**
118
- * batadv_dbg_ratelimited() - Store debug output with ratelimiting
107
+ * batadv_dbg_ratelimited() - Store debug output with rate limiting
119108 * @type: type of debug message
120109 * @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
122111 */
123112 #define batadv_dbg_ratelimited(type, bat_priv, arg...) \
124113 _batadv_dbg(type, bat_priv, 1, ## arg)
....@@ -127,7 +116,7 @@
127116 * batadv_info() - Store message in debug buffer and print it to kmsg buffer
128117 * @net_dev: the soft interface net device
129118 * @fmt: format string
130
- * @arg...: variable arguments
119
+ * @arg: variable arguments
131120 */
132121 #define batadv_info(net_dev, fmt, arg...) \
133122 do { \
....@@ -141,7 +130,7 @@
141130 * batadv_err() - Store error in debug buffer and print it to kmsg buffer
142131 * @net_dev: the soft interface net device
143132 * @fmt: format string
144
- * @arg...: variable arguments
133
+ * @arg: variable arguments
145134 */
146135 #define batadv_err(net_dev, fmt, arg...) \
147136 do { \