mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 15:13:55 +08:00
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>
This commit is contained in:
parent
f55e668f90
commit
68021b966b
@ -36,6 +36,12 @@ struct iwl_priv;
|
|||||||
#define IWL_INFO(p, f, a...) dev_info(&((p)->pci_dev->dev), f, ## a)
|
#define IWL_INFO(p, f, a...) dev_info(&((p)->pci_dev->dev), f, ## a)
|
||||||
#define IWL_CRIT(p, f, a...) dev_crit(&((p)->pci_dev->dev), f, ## a)
|
#define IWL_CRIT(p, f, a...) dev_crit(&((p)->pci_dev->dev), f, ## a)
|
||||||
|
|
||||||
|
#define iwl_print_hex_error(priv, p, len) \
|
||||||
|
do { \
|
||||||
|
print_hex_dump(KERN_ERR, "iwl data: ", \
|
||||||
|
DUMP_PREFIX_OFFSET, 16, 1, p, len, 1); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
#ifdef CONFIG_IWLWIFI_DEBUG
|
#ifdef CONFIG_IWLWIFI_DEBUG
|
||||||
#define IWL_DEBUG(__priv, level, fmt, args...) \
|
#define IWL_DEBUG(__priv, level, fmt, args...) \
|
||||||
do { \
|
do { \
|
||||||
|
Loading…
Reference in New Issue
Block a user