Skip to content

Commit

Permalink
staging: rtl8192e: Fix PRINTK_WITHOUT_KERN_LEVEL warnings
Browse files Browse the repository at this point in the history
Replace custom hex dumping function with print_hex_dump_bytes()
to make checkpatch.pl happy

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Mateusz Kulikowski authored and Greg Kroah-Hartman committed Apr 3, 2015
1 parent ff28b74 commit 61dbdf3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions drivers/staging/rtl8192e/rtllib.h
Original file line number Diff line number Diff line change
Expand Up @@ -690,15 +690,9 @@ do { \
#define RTLLIB_DEBUG_DATA(level, data, datalen) \
do { \
if ((rtllib_debug_level & (level)) == (level)) { \
int i; \
u8 *pdata = (u8 *)data; \
printk(KERN_DEBUG "rtllib: %s()\n", __func__); \
for (i = 0; i < (int)(datalen); i++) { \
printk("%2.2x ", pdata[i]); \
if ((i+1)%16 == 0) \
printk("\n"); \
} \
printk("\n"); \
print_hex_dump_bytes(KERN_DEBUG, DUMP_PREFIX_NONE, \
data, datalen); \
} \
} while (0)

Expand Down

0 comments on commit 61dbdf3

Please sign in to comment.