mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-06 21:43:06 +00:00
rtl8188eu: Update logging
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
d597e07a9e
commit
96adb823b9
54 changed files with 2268 additions and 2272 deletions
|
@ -360,7 +360,7 @@
|
|||
*/
|
||||
#define DBG 1
|
||||
|
||||
//#define CONFIG_DEBUG /* DBG_871X, etc... */
|
||||
//#define CONFIG_DEBUG /* DBG_88E, etc... */
|
||||
//#define CONFIG_DEBUG_RTL871X /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */
|
||||
|
||||
#define CONFIG_PROC_DEBUG
|
||||
|
|
|
@ -23,11 +23,11 @@
|
|||
#if 1 // rtw_wifi_driver
|
||||
#define CL_IPV6_PASS 1
|
||||
#define MACADDRLEN 6
|
||||
#define _DEBUG_ERR DBG_8192C
|
||||
#define _DEBUG_INFO //DBG_8192C
|
||||
#define DEBUG_WARN DBG_8192C
|
||||
#define DEBUG_INFO //DBG_8192C
|
||||
#define DEBUG_ERR DBG_8192C
|
||||
#define _DEBUG_ERR DBG_88E
|
||||
#define _DEBUG_INFO //DBG_88E
|
||||
#define DEBUG_WARN DBG_88E
|
||||
#define DEBUG_INFO //DBG_88E
|
||||
#define DEBUG_ERR DBG_88E
|
||||
//#define GET_MY_HWADDR ((GET_MIB(priv))->dot11OperationEntry.hwaddr)
|
||||
#define GET_MY_HWADDR(padapter) ((padapter)->eeprompriv.mac_addr)
|
||||
#endif // rtw_wifi_driver
|
||||
|
|
|
@ -157,30 +157,26 @@
|
|||
|
||||
#define DRIVER_PREFIX "RTL8188: "
|
||||
|
||||
#define DBG_871X_LEVEL(_Level, fmt, arg...) \
|
||||
extern u32 GlobalDebugLevel;
|
||||
|
||||
#define DBG_88E_LEVEL(_Level, fmt, arg...) \
|
||||
do { \
|
||||
if (_Level <= GlobalDebugLevel) \
|
||||
_dbgdump(DRIVER_PREFIX"ERROR " fmt, ##arg); \
|
||||
} while (0)
|
||||
|
||||
#define DBG_871X(...) \
|
||||
#define DBG_88E(...) \
|
||||
do { \
|
||||
_dbgdump(DRIVER_PREFIX __VA_ARGS__); \
|
||||
if (_drv_err_ <= GlobalDebugLevel) \
|
||||
_dbgdump(DRIVER_PREFIX __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#define MSG_8192C(...) \
|
||||
#define MSG_88E(...) \
|
||||
do { \
|
||||
_dbgdump(DRIVER_PREFIX __VA_ARGS__); \
|
||||
if (_drv_err_ <= GlobalDebugLevel) \
|
||||
_dbgdump(DRIVER_PREFIX __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#define DBG_8192C(...) \
|
||||
do { \
|
||||
_dbgdump(DRIVER_PREFIX __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
extern u32 GlobalDebugLevel;
|
||||
|
||||
|
||||
#define RT_TRACE(_Comp, _Level, Fmt) \
|
||||
do { \
|
||||
if (_Level <= GlobalDebugLevel) { \
|
||||
|
|
|
@ -739,13 +739,13 @@ void addba_timer_hdl(struct sta_info *psta);
|
|||
|
||||
#define set_survey_timer(mlmeext, ms) \
|
||||
do { \
|
||||
/*DBG_871X("%s set_survey_timer(%p, %d)\n", __func__, (mlmeext), (ms));*/ \
|
||||
/*DBG_88E("%s set_survey_timer(%p, %d)\n", __func__, (mlmeext), (ms));*/ \
|
||||
_set_timer(&(mlmeext)->survey_timer, (ms)); \
|
||||
} while (0)
|
||||
|
||||
#define set_link_timer(mlmeext, ms) \
|
||||
do { \
|
||||
/*DBG_871X("%s set_link_timer(%p, %d)\n", __func__, (mlmeext), (ms));*/ \
|
||||
/*DBG_88E("%s set_link_timer(%p, %d)\n", __func__, (mlmeext), (ms));*/ \
|
||||
_set_timer(&(mlmeext)->link_timer, (ms)); \
|
||||
} while (0)
|
||||
|
||||
|
|
|
@ -305,7 +305,7 @@ struct pwrctrl_priv
|
|||
|
||||
#define _rtw_set_pwr_state_check_timer(pwrctrlpriv, ms) \
|
||||
do { \
|
||||
/*DBG_871X("%s _rtw_set_pwr_state_check_timer(%p, %d)\n", __func__, (pwrctrlpriv), (ms));*/ \
|
||||
/*DBG_88E("%s _rtw_set_pwr_state_check_timer(%p, %d)\n", __func__, (pwrctrlpriv), (ms));*/ \
|
||||
_set_timer(&(pwrctrlpriv)->pwr_state_check_timer, (ms)); \
|
||||
} while (0)
|
||||
|
||||
|
|
|
@ -113,10 +113,10 @@ static inline int rtw_inc_and_chk_continual_urb_error(struct dvobj_priv *dvobj)
|
|||
int ret = _FALSE;
|
||||
int value;
|
||||
if ( (value=ATOMIC_INC_RETURN(&dvobj->continual_urb_error)) > MAX_CONTINUAL_URB_ERR) {
|
||||
DBG_871X("[dvobj:%p][ERROR] continual_urb_error:%d > %d\n", dvobj, value, MAX_CONTINUAL_URB_ERR);
|
||||
DBG_88E("[dvobj:%p][ERROR] continual_urb_error:%d > %d\n", dvobj, value, MAX_CONTINUAL_URB_ERR);
|
||||
ret = _TRUE;
|
||||
} else {
|
||||
//DBG_871X("[dvobj:%p] continual_urb_error:%d\n", dvobj, value);
|
||||
//DBG_88E("[dvobj:%p] continual_urb_error:%d\n", dvobj, value);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue