mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-30 19:06:01 +00:00
rtl8188eu: Slow the spamming of the logs
A number of unconditional print statements are converted to conditional. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
b48387bdc8
commit
9fad4d2d0d
25 changed files with 133 additions and 144 deletions
|
@ -552,8 +552,8 @@ static inline void dump_buf(u8 *buf, u32 len)
|
|||
|
||||
RTW_INFO("-----------------Len %d----------------\n", len);
|
||||
for (i = 0; i < len; i++)
|
||||
printk("%2.2x-", *(buf + i));
|
||||
printk("\n");
|
||||
RTW_INFO("%2.2x-", *(buf + i));
|
||||
RTW_INFO("\n");
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -724,8 +724,8 @@ u8 rtw_BT_efuse_map_write(PADAPTER adapter, u16 addr, u16 cnts, u8 *data)
|
|||
{
|
||||
#define RT_ASSERT_RET(expr) \
|
||||
if (!(expr)) { \
|
||||
printk("Assertion failed! %s at ......\n", #expr); \
|
||||
printk(" ......%s,%s, line=%d\n",__FILE__, __FUNCTION__, __LINE__); \
|
||||
RTW_INFO("Assertion failed! %s at ......\n", #expr); \
|
||||
RTW_INFO(" ......%s,%s, line=%d\n",__FILE__, __FUNCTION__, __LINE__); \
|
||||
return _FAIL; \
|
||||
}
|
||||
|
||||
|
@ -2024,8 +2024,8 @@ u8 rtw_efuse_map_write(PADAPTER padapter, u16 addr, u16 cnts, u8 *data)
|
|||
{
|
||||
#define RT_ASSERT_RET(expr) \
|
||||
if (!(expr)) { \
|
||||
printk("Assertion failed! %s at ......\n", #expr); \
|
||||
printk(" ......%s,%s, line=%d\n",__FILE__, __FUNCTION__, __LINE__); \
|
||||
RTW_INFO("Assertion failed! %s at ......\n", #expr); \
|
||||
RTW_INFO(" ......%s,%s, line=%d\n",__FILE__, __FUNCTION__, __LINE__); \
|
||||
return _FAIL; \
|
||||
}
|
||||
|
||||
|
@ -2168,8 +2168,8 @@ u8 rtw_BT_efuse_map_write(PADAPTER padapter, u16 addr, u16 cnts, u8 *data)
|
|||
{
|
||||
#define RT_ASSERT_RET(expr) \
|
||||
if (!(expr)) { \
|
||||
printk("Assertion failed! %s at ......\n", #expr); \
|
||||
printk(" ......%s,%s, line=%d\n",__FILE__, __FUNCTION__, __LINE__); \
|
||||
RTW_INFO("Assertion failed! %s at ......\n", #expr); \
|
||||
RTW_INFO(" ......%s,%s, line=%d\n",__FILE__, __FUNCTION__, __LINE__); \
|
||||
return _FAIL; \
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue