diff --git a/include/autoconf.h b/include/autoconf.h index 5fea6ce..bc8c272 100755 --- a/include/autoconf.h +++ b/include/autoconf.h @@ -348,7 +348,7 @@ */ #define DBG 1 -#define CONFIG_DEBUG /* DBG_871X, etc... */ +//#define CONFIG_DEBUG /* DBG_871X, etc... */ //#define CONFIG_DEBUG_RTL871X /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */ #define CONFIG_PROC_DEBUG diff --git a/include/rtw_debug.h b/include/rtw_debug.h index dc065dc..58fcbe5 100755 --- a/include/rtw_debug.h +++ b/include/rtw_debug.h @@ -171,12 +171,11 @@ extern void rtl871x_cedbg(const char *fmt, ...); extern u32 GlobalDebugLevel; #define DRIVER_PREFIX "R8188EU: " -#define DEBUG_LEVEL (_drv_err_) #if defined (_dbgdump) #undef DBG_871X_LEVEL #define DBG_871X_LEVEL(level, fmt, arg...) \ do {\ - if (level <= DEBUG_LEVEL) {\ + if (level <= GlobalDebugLevel) {\ if (level <= _drv_err_ && level > _drv_always_) \ _dbgdump(DRIVER_PREFIX"ERROR " fmt, ##arg);\ else \