hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/net/wireless/realtek/rtlwifi/debug.h
....@@ -1,26 +1,5 @@
1
-/******************************************************************************
2
- *
3
- * Copyright(c) 2009-2012 Realtek Corporation.
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms of version 2 of the GNU General Public License as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful, but WITHOUT
10
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
- * more details.
13
- *
14
- * The full GNU General Public License is included in this distribution in the
15
- * file called LICENSE.
16
- *
17
- * Contact Information:
18
- * wlanfae <wlanfae@realtek.com>
19
- * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20
- * Hsinchu 300, Taiwan.
21
- *
22
- * Larry Finger <Larry.Finger@lwfinger.net>
23
- *****************************************************************************/
1
+/* SPDX-License-Identifier: GPL-2.0 */
2
+/* Copyright(c) 2009-2012 Realtek Corporation.*/
243
254 #ifndef __RTL_DEBUG_H__
265 #define __RTL_DEBUG_H__
....@@ -157,7 +136,7 @@
157136 FEEPROM = 11,
158137 FPWR = 12,
159138 FDM = 13,
160
- FDBGCtrl = 14,
139
+ FDBGCTRL = 14,
161140 FC2H = 15,
162141 FBT = 16,
163142 FINIT = 17,
....@@ -170,10 +149,6 @@
170149 struct rtl_priv;
171150
172151 __printf(4, 5)
173
-void _rtl_dbg_trace(struct rtl_priv *rtlpriv, u64 comp, int level,
174
- const char *fmt, ...);
175
-
176
-__printf(4, 5)
177152 void _rtl_dbg_print(struct rtl_priv *rtlpriv, u64 comp, int level,
178153 const char *fmt, ...);
179154
....@@ -181,8 +156,8 @@
181156 const char *titlestring,
182157 const void *hexdata, int hexdatalen);
183158
184
-#define RT_TRACE(rtlpriv, comp, level, fmt, ...) \
185
- _rtl_dbg_trace(rtlpriv, comp, level, \
159
+#define rtl_dbg(rtlpriv, comp, level, fmt, ...) \
160
+ _rtl_dbg_print(rtlpriv, comp, level, \
186161 fmt, ##__VA_ARGS__)
187162
188163 #define RTPRINT(rtlpriv, dbgtype, dbgflag, fmt, ...) \
....@@ -198,9 +173,9 @@
198173 struct rtl_priv;
199174
200175 __printf(4, 5)
201
-static inline void RT_TRACE(struct rtl_priv *rtlpriv,
202
- u64 comp, int level,
203
- const char *fmt, ...)
176
+static inline void rtl_dbg(struct rtl_priv *rtlpriv,
177
+ u64 comp, int level,
178
+ const char *fmt, ...)
204179 {
205180 }
206181