diff options
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl-debug.h')
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-debug.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-debug.h b/drivers/net/wireless/iwlegacy/iwl-debug.h index a825051d5f2d..c6dcbf3a2ffc 100644 --- a/drivers/net/wireless/iwlegacy/iwl-debug.h +++ b/drivers/net/wireless/iwlegacy/iwl-debug.h | |||
@@ -52,14 +52,6 @@ do { \ | |||
52 | __func__ , ## args); \ | 52 | __func__ , ## args); \ |
53 | } while (0) | 53 | } while (0) |
54 | 54 | ||
55 | #define IL_DEBUG_LIMIT(__priv, level, fmt, args...) \ | ||
56 | do { \ | ||
57 | if ((il_get_debug_level(__priv) & (level)) && net_ratelimit()) \ | ||
58 | dev_printk(KERN_ERR, &(__priv->hw->wiphy->dev), \ | ||
59 | "%c %s " fmt, in_interrupt() ? 'I' : 'U', \ | ||
60 | __func__ , ## args); \ | ||
61 | } while (0) | ||
62 | |||
63 | #define il_print_hex_dump(il, level, p, len) \ | 55 | #define il_print_hex_dump(il, level, p, len) \ |
64 | do { \ | 56 | do { \ |
65 | if (il_get_debug_level(il) & level) \ | 57 | if (il_get_debug_level(il) & level) \ |
@@ -69,7 +61,6 @@ do { \ | |||
69 | 61 | ||
70 | #else | 62 | #else |
71 | #define IL_DEBUG(__priv, level, fmt, args...) | 63 | #define IL_DEBUG(__priv, level, fmt, args...) |
72 | #define IL_DEBUG_LIMIT(__priv, level, fmt, args...) | ||
73 | static inline void il_print_hex_dump(struct il_priv *il, int level, | 64 | static inline void il_print_hex_dump(struct il_priv *il, int level, |
74 | const void *p, u32 len) | 65 | const void *p, u32 len) |
75 | {} | 66 | {} |
@@ -169,25 +160,14 @@ static inline void il_dbgfs_unregister(struct il_priv *il) | |||
169 | #define IL_DEBUG_FW(p, f, a...) IL_DEBUG(p, IL_DL_FW, f, ## a) | 160 | #define IL_DEBUG_FW(p, f, a...) IL_DEBUG(p, IL_DL_FW, f, ## a) |
170 | #define IL_DEBUG_RF_KILL(p, f, a...) IL_DEBUG(p, IL_DL_RF_KILL, f, ## a) | 161 | #define IL_DEBUG_RF_KILL(p, f, a...) IL_DEBUG(p, IL_DL_RF_KILL, f, ## a) |
171 | #define IL_DEBUG_DROP(p, f, a...) IL_DEBUG(p, IL_DL_DROP, f, ## a) | 162 | #define IL_DEBUG_DROP(p, f, a...) IL_DEBUG(p, IL_DL_DROP, f, ## a) |
172 | #define IL_DEBUG_DROP_LIMIT(p, f, a...) \ | ||
173 | IL_DEBUG_LIMIT(p, IL_DL_DROP, f, ## a) | ||
174 | #define IL_DEBUG_AP(p, f, a...) IL_DEBUG(p, IL_DL_AP, f, ## a) | 163 | #define IL_DEBUG_AP(p, f, a...) IL_DEBUG(p, IL_DL_AP, f, ## a) |
175 | #define IL_DEBUG_TXPOWER(p, f, a...) IL_DEBUG(p, IL_DL_TXPOWER, f, ## a) | 164 | #define IL_DEBUG_TXPOWER(p, f, a...) IL_DEBUG(p, IL_DL_TXPOWER, f, ## a) |
176 | #define IL_DEBUG_RATE(p, f, a...) IL_DEBUG(p, IL_DL_RATE, f, ## a) | 165 | #define IL_DEBUG_RATE(p, f, a...) IL_DEBUG(p, IL_DL_RATE, f, ## a) |
177 | #define IL_DEBUG_RATE_LIMIT(p, f, a...) \ | ||
178 | IL_DEBUG_LIMIT(p, IL_DL_RATE, f, ## a) | ||
179 | #define IL_DEBUG_NOTIF(p, f, a...) IL_DEBUG(p, IL_DL_NOTIF, f, ## a) | 166 | #define IL_DEBUG_NOTIF(p, f, a...) IL_DEBUG(p, IL_DL_NOTIF, f, ## a) |
180 | #define IL_DEBUG_ASSOC(p, f, a...) \ | 167 | #define IL_DEBUG_ASSOC(p, f, a...) IL_DEBUG(p, IL_DL_ASSOC, f, ## a) |
181 | IL_DEBUG(p, IL_DL_ASSOC | IL_DL_INFO, f, ## a) | ||
182 | #define IL_DEBUG_ASSOC_LIMIT(p, f, a...) \ | ||
183 | IL_DEBUG_LIMIT(p, IL_DL_ASSOC | IL_DL_INFO, f, ## a) | ||
184 | #define IL_DEBUG_HT(p, f, a...) IL_DEBUG(p, IL_DL_HT, f, ## a) | 168 | #define IL_DEBUG_HT(p, f, a...) IL_DEBUG(p, IL_DL_HT, f, ## a) |
185 | #define IL_DEBUG_STATS(p, f, a...) IL_DEBUG(p, IL_DL_STATS, f, ## a) | 169 | #define IL_DEBUG_STATS(p, f, a...) IL_DEBUG(p, IL_DL_STATS, f, ## a) |
186 | #define IL_DEBUG_STATS_LIMIT(p, f, a...) \ | ||
187 | IL_DEBUG_LIMIT(p, IL_DL_STATS, f, ## a) | ||
188 | #define IL_DEBUG_TX_REPLY(p, f, a...) IL_DEBUG(p, IL_DL_TX_REPLY, f, ## a) | 170 | #define IL_DEBUG_TX_REPLY(p, f, a...) IL_DEBUG(p, IL_DL_TX_REPLY, f, ## a) |
189 | #define IL_DEBUG_TX_REPLY_LIMIT(p, f, a...) \ | ||
190 | IL_DEBUG_LIMIT(p, IL_DL_TX_REPLY, f, ## a) | ||
191 | #define IL_DEBUG_QOS(p, f, a...) IL_DEBUG(p, IL_DL_QOS, f, ## a) | 171 | #define IL_DEBUG_QOS(p, f, a...) IL_DEBUG(p, IL_DL_QOS, f, ## a) |
192 | #define IL_DEBUG_RADIO(p, f, a...) IL_DEBUG(p, IL_DL_RADIO, f, ## a) | 172 | #define IL_DEBUG_RADIO(p, f, a...) IL_DEBUG(p, IL_DL_RADIO, f, ## a) |
193 | #define IL_DEBUG_POWER(p, f, a...) IL_DEBUG(p, IL_DL_POWER, f, ## a) | 173 | #define IL_DEBUG_POWER(p, f, a...) IL_DEBUG(p, IL_DL_POWER, f, ## a) |