summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/brcm80211/include
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-01-15 00:38:40 -0800
committerJohn W. Linville <linville@tuxdriver.com>2012-01-24 14:21:13 -0500
commit1e02382979dd422e3b1bdb45545a0699497e3692 (patch)
treebd640f0c9c3c42d8773630185df6b828a65de066 /drivers/net/wireless/brcm80211/include
parentd6400c29abcd218bcc9be5d09f76e0770e25face (diff)
downloadop-kernel-dev-1e02382979dd422e3b1bdb45545a0699497e3692.zip
op-kernel-dev-1e02382979dd422e3b1bdb45545a0699497e3692.tar.gz
brcm80211: Add and use brcmX_dbg_dump_hex
Reduce the number of #ifdef DEBUG uses by adding a dbg_hex_dump routine which has the appropriate #ifdef DEBUG test. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/include')
-rw-r--r--drivers/net/wireless/brcm80211/include/brcmu_utils.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/include/brcmu_utils.h b/drivers/net/wireless/brcm80211/include/brcmu_utils.h
index 0cde38a..477b92a 100644
--- a/drivers/net/wireless/brcm80211/include/brcmu_utils.h
+++ b/drivers/net/wireless/brcm80211/include/brcmu_utils.h
@@ -182,4 +182,15 @@ extern void brcmu_prpkt(const char *msg, struct sk_buff *p0);
#define brcmu_prpkt(a, b)
#endif /* DEBUG */
+#ifdef DEBUG
+extern __printf(3, 4)
+void brcmu_dbg_hex_dump(const void *data, size_t size, const char *fmt, ...);
+#else
+__printf(3, 4)
+static inline
+void brcmu_dbg_hex_dump(const void *data, size_t size, const char *fmt, ...)
+{
+}
+#endif
+
#endif /* _BRCMU_UTILS_H_ */
OpenPOWER on IntegriCloud