diff options
author | Reinette Chatre <reinette.chatre@intel.com> | 2009-06-26 14:00:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:02:26 -0400 |
commit | 68021b966b3cb363596251bac0370c12e084e7da (patch) | |
tree | 4371276619bc1861177268f4ac06edfa8674f670 /drivers/net/wireless/iwlwifi/iwl-debug.h | |
parent | f55e668f902e40a5299deb8cc5940d1d24b19ea0 (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.h | 6 |
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) \ | ||
40 | do { \ | ||
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...) \ |
41 | do { \ | 47 | do { \ |