Commit 4d342964 authored by Larry Finger's avatar Larry Finger Committed by Kalle Valo

rtlwifi: Remove temporary definition of RT_TRACE

A definition of this macro was kept until all drivers had been converted.
It can now be deleted.

This change also renames _rtl_dbg_trace() to _rtl_dbg_out().
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200831185046.30307-1-Larry.Finger@lwfinger.net
parent 98611b00
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#ifdef CONFIG_RTLWIFI_DEBUG #ifdef CONFIG_RTLWIFI_DEBUG
void _rtl_dbg_trace(struct rtl_priv *rtlpriv, u64 comp, int level, void _rtl_dbg_out(struct rtl_priv *rtlpriv, u64 comp, int level,
const char *fmt, ...) const char *fmt, ...)
{ {
if (unlikely((comp & rtlpriv->cfg->mod_params->debug_mask) && if (unlikely((comp & rtlpriv->cfg->mod_params->debug_mask) &&
...@@ -26,7 +26,7 @@ void _rtl_dbg_trace(struct rtl_priv *rtlpriv, u64 comp, int level, ...@@ -26,7 +26,7 @@ void _rtl_dbg_trace(struct rtl_priv *rtlpriv, u64 comp, int level,
va_end(args); va_end(args);
} }
} }
EXPORT_SYMBOL_GPL(_rtl_dbg_trace); EXPORT_SYMBOL_GPL(_rtl_dbg_out);
void _rtl_dbg_print(struct rtl_priv *rtlpriv, u64 comp, int level, void _rtl_dbg_print(struct rtl_priv *rtlpriv, u64 comp, int level,
const char *fmt, ...) const char *fmt, ...)
......
...@@ -149,7 +149,7 @@ enum dbgp_flag_e { ...@@ -149,7 +149,7 @@ enum dbgp_flag_e {
struct rtl_priv; struct rtl_priv;
__printf(4, 5) __printf(4, 5)
void _rtl_dbg_trace(struct rtl_priv *rtlpriv, u64 comp, int level, void _rtl_dbg_out(struct rtl_priv *rtlpriv, u64 comp, int level,
const char *fmt, ...); const char *fmt, ...);
__printf(4, 5) __printf(4, 5)
...@@ -161,11 +161,7 @@ void _rtl_dbg_print_data(struct rtl_priv *rtlpriv, u64 comp, int level, ...@@ -161,11 +161,7 @@ void _rtl_dbg_print_data(struct rtl_priv *rtlpriv, u64 comp, int level,
const void *hexdata, int hexdatalen); const void *hexdata, int hexdatalen);
#define rtl_dbg(rtlpriv, comp, level, fmt, ...) \ #define rtl_dbg(rtlpriv, comp, level, fmt, ...) \
_rtl_dbg_trace(rtlpriv, comp, level, \ _rtl_dbg_out(rtlpriv, comp, level, \
fmt, ##__VA_ARGS__)
#define RT_TRACE(rtlpriv, comp, level, fmt, ...) \
_rtl_dbg_trace(rtlpriv, comp, level, \
fmt, ##__VA_ARGS__) fmt, ##__VA_ARGS__)
#define RTPRINT(rtlpriv, dbgtype, dbgflag, fmt, ...) \ #define RTPRINT(rtlpriv, dbgtype, dbgflag, fmt, ...) \
...@@ -187,13 +183,6 @@ static inline void rtl_dbg(struct rtl_priv *rtlpriv, ...@@ -187,13 +183,6 @@ static inline void rtl_dbg(struct rtl_priv *rtlpriv,
{ {
} }
__printf(4, 5)
static inline void RT_TRACE(struct rtl_priv *rtlpriv,
u64 comp, int level,
const char *fmt, ...)
{
}
__printf(4, 5) __printf(4, 5)
static inline void RTPRINT(struct rtl_priv *rtlpriv, static inline void RTPRINT(struct rtl_priv *rtlpriv,
int dbgtype, int dbgflag, int dbgtype, int dbgflag,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment