From 4774c66a8c0b9675d0ede2b42c82cea9be8d58ac Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sun, 8 Feb 2015 14:56:05 -0600 Subject: [PATCH] rtl8188eu: Stop extraneous logging Signed-off-by: Larry Finger --- include/autoconf.h | 2 +- include/rtw_debug.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 \