Go to the documentation of this file.
21 #define BRCMF_ERROR_VAL 0x0001
22 #define BRCMF_TRACE_VAL 0x0002
23 #define BRCMF_INFO_VAL 0x0004
24 #define BRCMF_DATA_VAL 0x0008
25 #define BRCMF_CTL_VAL 0x0010
26 #define BRCMF_TIMER_VAL 0x0020
27 #define BRCMF_HDRS_VAL 0x0040
28 #define BRCMF_BYTES_VAL 0x0080
29 #define BRCMF_INTR_VAL 0x0100
30 #define BRCMF_GLOM_VAL 0x0400
31 #define BRCMF_EVENT_VAL 0x0800
32 #define BRCMF_BTA_VAL 0x1000
33 #define BRCMF_ISCAN_VAL 0x2000
37 #define brcmf_dbg(level, fmt, ...) \
39 if (BRCMF_ERROR_VAL == BRCMF_##level##_VAL) { \
40 if (brcmf_msg_level & BRCMF_##level##_VAL) { \
41 if (net_ratelimit()) \
42 pr_debug("%s: " fmt, \
43 __func__, ##__VA_ARGS__); \
46 if (brcmf_msg_level & BRCMF_##level##_VAL) { \
47 pr_debug("%s: " fmt, \
48 __func__, ##__VA_ARGS__); \
53 #define BRCMF_DATA_ON() (brcmf_msg_level & BRCMF_DATA_VAL)
54 #define BRCMF_CTL_ON() (brcmf_msg_level & BRCMF_CTL_VAL)
55 #define BRCMF_HDRS_ON() (brcmf_msg_level & BRCMF_HDRS_VAL)
56 #define BRCMF_BYTES_ON() (brcmf_msg_level & BRCMF_BYTES_VAL)
57 #define BRCMF_GLOM_ON() (brcmf_msg_level & BRCMF_GLOM_VAL)
58 #define BRCMF_EVENT_ON() (brcmf_msg_level & BRCMF_EVENT_VAL)
62 #define brcmf_dbg(level, fmt, ...) no_printk(fmt, ##__VA_ARGS__)
64 #define BRCMF_DATA_ON() 0
65 #define BRCMF_CTL_ON() 0
66 #define BRCMF_HDRS_ON() 0
67 #define BRCMF_BYTES_ON() 0
68 #define BRCMF_GLOM_ON() 0
69 #define BRCMF_EVENT_ON() 0
73 #define brcmf_dbg_hex_dump(test, data, len, fmt, ...) \
76 brcmu_dbg_hex_dump(data, len, fmt, ##__VA_ARGS__); \