2012-12-20 13:13:19 -08:00
|
|
|
#ifndef WIL_DBG_HEXDUMP_H_
|
|
|
|
|
#define WIL_DBG_HEXDUMP_H_
|
|
|
|
|
|
2013-01-18 13:24:32 +11:00
|
|
|
#include <linux/printk.h>
|
|
|
|
|
#include <linux/dynamic_debug.h>
|
2012-12-20 13:13:19 -08:00
|
|
|
|
2013-01-18 13:24:32 +11:00
|
|
|
#if defined(CONFIG_DYNAMIC_DEBUG)
|
2012-12-20 13:13:19 -08:00
|
|
|
#define wil_print_hex_dump_debug(prefix_str, prefix_type, rowsize, \
|
|
|
|
|
groupsize, buf, len, ascii) \
|
2013-01-18 13:24:32 +11:00
|
|
|
dynamic_hex_dump(prefix_str, prefix_type, rowsize, \
|
2012-12-20 13:13:19 -08:00
|
|
|
groupsize, buf, len, ascii)
|
|
|
|
|
|
|
|
|
|
#else /* defined(CONFIG_DYNAMIC_DEBUG) */
|
|
|
|
|
#define wil_print_hex_dump_debug(prefix_str, prefix_type, rowsize, \
|
|
|
|
|
groupsize, buf, len, ascii) \
|
|
|
|
|
print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, rowsize, \
|
|
|
|
|
groupsize, buf, len, ascii)
|
|
|
|
|
#endif /* defined(CONFIG_DYNAMIC_DEBUG) */
|
|
|
|
|
|
|
|
|
|
#endif /* WIL_DBG_HEXDUMP_H_ */
|