.. | .. |
---|
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.*/ |
---|
24 | 3 | |
---|
25 | 4 | #ifndef __RTL_DEBUG_H__ |
---|
26 | 5 | #define __RTL_DEBUG_H__ |
---|
.. | .. |
---|
157 | 136 | FEEPROM = 11, |
---|
158 | 137 | FPWR = 12, |
---|
159 | 138 | FDM = 13, |
---|
160 | | - FDBGCtrl = 14, |
---|
| 139 | + FDBGCTRL = 14, |
---|
161 | 140 | FC2H = 15, |
---|
162 | 141 | FBT = 16, |
---|
163 | 142 | FINIT = 17, |
---|
.. | .. |
---|
170 | 149 | struct rtl_priv; |
---|
171 | 150 | |
---|
172 | 151 | __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) |
---|
177 | 152 | void _rtl_dbg_print(struct rtl_priv *rtlpriv, u64 comp, int level, |
---|
178 | 153 | const char *fmt, ...); |
---|
179 | 154 | |
---|
.. | .. |
---|
181 | 156 | const char *titlestring, |
---|
182 | 157 | const void *hexdata, int hexdatalen); |
---|
183 | 158 | |
---|
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, \ |
---|
186 | 161 | fmt, ##__VA_ARGS__) |
---|
187 | 162 | |
---|
188 | 163 | #define RTPRINT(rtlpriv, dbgtype, dbgflag, fmt, ...) \ |
---|
.. | .. |
---|
198 | 173 | struct rtl_priv; |
---|
199 | 174 | |
---|
200 | 175 | __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, ...) |
---|
204 | 179 | { |
---|
205 | 180 | } |
---|
206 | 181 | |
---|