Go to the documentation of this file.
28 #include <linux/bitops.h>
31 #define DRIVER_NAME "wlcore"
32 #define DRIVER_PREFIX DRIVER_NAME ": "
62 #define DEBUG_DUMP_LIMIT 1024
64 #define wl1271_error(fmt, arg...) \
65 pr_err(DRIVER_PREFIX "ERROR " fmt "\n", ##arg)
67 #define wl1271_warning(fmt, arg...) \
68 pr_warning(DRIVER_PREFIX "WARNING " fmt "\n", ##arg)
70 #define wl1271_notice(fmt, arg...) \
71 pr_info(DRIVER_PREFIX fmt "\n", ##arg)
73 #define wl1271_info(fmt, arg...) \
74 pr_info(DRIVER_PREFIX fmt "\n", ##arg)
77 #if defined(CONFIG_DYNAMIC_DEBUG)
78 #define wl1271_debug(level, fmt, arg...) \
80 if (unlikely(level & wl12xx_debug_level)) \
81 dynamic_pr_debug(DRIVER_PREFIX fmt "\n", ##arg); \
84 #define wl1271_debug(level, fmt, arg...) \
86 if (unlikely(level & wl12xx_debug_level)) \
87 printk(KERN_DEBUG pr_fmt(DRIVER_PREFIX fmt "\n"), \
93 #define wl1271_dump(level, prefix, buf, len) \
95 if (level & wl12xx_debug_level) \
96 print_hex_dump(KERN_DEBUG, DRIVER_PREFIX prefix, \
97 DUMP_PREFIX_OFFSET, 16, 1, \
99 min_t(size_t, len, DEBUG_DUMP_LIMIT), \
103 #define wl1271_dump_ascii(level, prefix, buf, len) \
105 if (level & wl12xx_debug_level) \
106 print_hex_dump(KERN_DEBUG, DRIVER_PREFIX prefix, \
107 DUMP_PREFIX_OFFSET, 16, 1, \
109 min_t(size_t, len, DEBUG_DUMP_LIMIT), \