Commit da7aa280 authored by Luciano Coelho's avatar Luciano Coelho

wlcore: use print_hex_dump_debug()

We were printing out all the hex dumps regardless of whether dynamic
debugging was enabled or not.  Now that print_hex_dump_debug() has
been implemented, we can use that instead.
Reported-by: default avatarArik Nemtsov <arik@wizery.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent abca1237
...@@ -89,11 +89,10 @@ extern u32 wl12xx_debug_level; ...@@ -89,11 +89,10 @@ extern u32 wl12xx_debug_level;
} while (0) } while (0)
#endif #endif
/* TODO: use pr_debug_hex_dump when it becomes available */
#define wl1271_dump(level, prefix, buf, len) \ #define wl1271_dump(level, prefix, buf, len) \
do { \ do { \
if (level & wl12xx_debug_level) \ if (level & wl12xx_debug_level) \
print_hex_dump(KERN_DEBUG, DRIVER_PREFIX prefix, \ print_hex_dump_debug(DRIVER_PREFIX prefix, \
DUMP_PREFIX_OFFSET, 16, 1, \ DUMP_PREFIX_OFFSET, 16, 1, \
buf, \ buf, \
min_t(size_t, len, DEBUG_DUMP_LIMIT), \ min_t(size_t, len, DEBUG_DUMP_LIMIT), \
...@@ -103,7 +102,7 @@ extern u32 wl12xx_debug_level; ...@@ -103,7 +102,7 @@ extern u32 wl12xx_debug_level;
#define wl1271_dump_ascii(level, prefix, buf, len) \ #define wl1271_dump_ascii(level, prefix, buf, len) \
do { \ do { \
if (level & wl12xx_debug_level) \ if (level & wl12xx_debug_level) \
print_hex_dump(KERN_DEBUG, DRIVER_PREFIX prefix, \ print_hex_dump_debug(DRIVER_PREFIX prefix, \
DUMP_PREFIX_OFFSET, 16, 1, \ DUMP_PREFIX_OFFSET, 16, 1, \
buf, \ buf, \
min_t(size_t, len, DEBUG_DUMP_LIMIT), \ min_t(size_t, len, DEBUG_DUMP_LIMIT), \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment