diff --git a/include/rtw_debug.h b/include/rtw_debug.h index b3dc0a8..8e53d7d 100644 --- a/include/rtw_debug.h +++ b/include/rtw_debug.h @@ -183,7 +183,7 @@ extern void rtl871x_cedbg(const char *fmt, ...); #define _dbgdump rtl871x_cedbg #define _seqdump(sel, fmt, arg...) _dbgdump(fmt, ##arg) #elif defined PLATFORM_LINUX - #define _dbgdump printk + #define _dbgdump pr_debug #define _seqdump seq_printf #elif defined PLATFORM_FREEBSD #define _dbgdump printf @@ -229,7 +229,7 @@ extern void rtl871x_cedbg(const char *fmt, ...); if (sel == RTW_DBGDUMP)\ _DBG_871X_LEVEL(_drv_always_, fmt, ##arg); \ else {\ - if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \ + _seqdump(sel, fmt, ##arg); \ } \ }while(0) @@ -239,7 +239,7 @@ extern void rtl871x_cedbg(const char *fmt, ...); if (sel == RTW_DBGDUMP)\ DBG_871X_LEVEL(_drv_always_, fmt, ##arg); \ else {\ - if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \ + _seqdump(sel, fmt, ##arg); \ } \ }while(0)