Fix debug helper functions

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Jean-Francois Moine
2016-03-18 12:06:53 +01:00
committed by Hans de Goede
parent 1d2357b312
commit 080f2aaf6b

View File

@@ -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)