rtlwifi: Replace local debug macro RT_ASSERT
This macro can be replaced with WARN_ONCE. In addition to using a standard debugging macro for these critical errors, we also get a stack dump. In rtl8821ae/hw.c, a senseless comment was removed, and an incorrect indentation was fixed. This patch also fixes two places in each of rtl8192ee, rtl8723be, and rtl8821ae where the logical condition was incorrect. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
@@ -166,15 +166,6 @@ enum dbgp_flag_e {
|
||||
|
||||
#ifdef CONFIG_RTLWIFI_DEBUG
|
||||
|
||||
#define RT_ASSERT(_exp, fmt, ...) \
|
||||
do { \
|
||||
if (!(_exp)) { \
|
||||
printk(KERN_DEBUG KBUILD_MODNAME ":%s(): " fmt, \
|
||||
__func__, ##__VA_ARGS__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
||||
struct rtl_priv;
|
||||
|
||||
__printf(5, 6)
|
||||
@@ -210,11 +201,6 @@ do { \
|
||||
|
||||
struct rtl_priv;
|
||||
|
||||
__printf(2, 3)
|
||||
static inline void RT_ASSERT(int exp, const char *fmt, ...)
|
||||
{
|
||||
}
|
||||
|
||||
__printf(4, 5)
|
||||
static inline void RT_TRACE(struct rtl_priv *rtlpriv,
|
||||
int comp, int level,
|
||||
|
Reference in New Issue
Block a user