From 080f2aaf6bc8e08eeb3b51f0b8c377eae1ea7ed7 Mon Sep 17 00:00:00 2001 From: Jean-Francois Moine Date: Fri, 18 Mar 2016 12:06:53 +0100 Subject: [PATCH] Fix debug helper functions Signed-off-by: Hans de Goede --- include/rtw_debug.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)