aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-debug.h
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2009-06-26 14:00:54 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-10 15:02:26 -0400
commit68021b966b3cb363596251bac0370c12e084e7da (patch)
tree4371276619bc1861177268f4ac06edfa8674f670 /drivers/net/wireless/iwlwifi/iwl-debug.h
parentf55e668f902e40a5299deb8cc5940d1d24b19ea0 (diff)
iwlwifi: add utility to print buffer when error occurs
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debug.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debug.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h
index 2cf014f523be..65bbce0f1717 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debug.h
+++ b/drivers/net/wireless/iwlwifi/iwl-debug.h
@@ -36,6 +36,12 @@ struct iwl_priv;
36#define IWL_INFO(p, f, a...) dev_info(&((p)->pci_dev->dev), f, ## a) 36#define IWL_INFO(p, f, a...) dev_info(&((p)->pci_dev->dev), f, ## a)
37#define IWL_CRIT(p, f, a...) dev_crit(&((p)->pci_dev->dev), f, ## a) 37#define IWL_CRIT(p, f, a...) dev_crit(&((p)->pci_dev->dev), f, ## a)
38 38
39#define iwl_print_hex_error(priv, p, len) \
40do { \
41 print_hex_dump(KERN_ERR, "iwl data: ", \
42 DUMP_PREFIX_OFFSET, 16, 1, p, len, 1); \
43} while (0)
44
39#ifdef CONFIG_IWLWIFI_DEBUG 45#ifdef CONFIG_IWLWIFI_DEBUG
40#define IWL_DEBUG(__priv, level, fmt, args...) \ 46#define IWL_DEBUG(__priv, level, fmt, args...) \
41do { \ 47do { \