staging: rtl8192e: Fix PRINTK_WITHOUT_KERN_LEVEL warnings
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Tue, 31 Mar 2015 22:24:33 +0000 (00:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 13:29:30 +0000 (15:29 +0200)
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>
drivers/staging/rtl8192e/rtllib.h

index 5363b6f955b01063fab2f56f4aedd7aff45d97da..c7487772f21deced5c9bee09e4a688d7b2664c0c 100644 (file)
@@ -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)