summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/wil6210/dbg_hexdump.h
blob: e5712f026c47431f31bff5b272ce7375a52a9fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef WIL_DBG_HEXDUMP_H_
#define WIL_DBG_HEXDUMP_H_

#include <linux/printk.h>
#include <linux/dynamic_debug.h>

#if defined(CONFIG_DYNAMIC_DEBUG)
#define wil_print_hex_dump_debug(prefix_str, prefix_type, rowsize,	\
				 groupsize, buf, len, ascii)		\
	dynamic_hex_dump(prefix_str, prefix_type, rowsize,		\
			     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_ */
OpenPOWER on IntegriCloud