Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369063
b: refs/heads/master
c: da7aa28
h: refs/heads/master
i:
  369061: 49950f3
  369059: 68538dd
  369055: 342f82a
v: v3
  • Loading branch information
Luciano Coelho committed Mar 25, 2013
1 parent 535f9bf commit 273f5be
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: abca1237820a7d9a087b2744a2abd1026364d7b7
refs/heads/master: da7aa28004d3add74998f3416e70a6f9b3a95dd1
33 changes: 16 additions & 17 deletions trunk/drivers/net/wireless/ti/wlcore/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,24 @@ extern u32 wl12xx_debug_level;
} while (0)
#endif

/* TODO: use pr_debug_hex_dump when it becomes available */
#define wl1271_dump(level, prefix, buf, len) \
do { \
if (level & wl12xx_debug_level) \
print_hex_dump(KERN_DEBUG, DRIVER_PREFIX prefix, \
DUMP_PREFIX_OFFSET, 16, 1, \
buf, \
min_t(size_t, len, DEBUG_DUMP_LIMIT), \
0); \
#define wl1271_dump(level, prefix, buf, len) \
do { \
if (level & wl12xx_debug_level) \
print_hex_dump_debug(DRIVER_PREFIX prefix, \
DUMP_PREFIX_OFFSET, 16, 1, \
buf, \
min_t(size_t, len, DEBUG_DUMP_LIMIT), \
0); \
} while (0)

#define wl1271_dump_ascii(level, prefix, buf, len) \
do { \
if (level & wl12xx_debug_level) \
print_hex_dump(KERN_DEBUG, DRIVER_PREFIX prefix, \
DUMP_PREFIX_OFFSET, 16, 1, \
buf, \
min_t(size_t, len, DEBUG_DUMP_LIMIT), \
true); \
#define wl1271_dump_ascii(level, prefix, buf, len) \
do { \
if (level & wl12xx_debug_level) \
print_hex_dump_debug(DRIVER_PREFIX prefix, \
DUMP_PREFIX_OFFSET, 16, 1, \
buf, \
min_t(size_t, len, DEBUG_DUMP_LIMIT), \
true); \
} while (0)

#endif /* __DEBUG_H__ */

0 comments on commit 273f5be

Please sign in to comment.