diff options
author | Bruno Randolf <br1@einfach.org> | 2010-05-18 21:31:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-02 16:13:24 -0400 |
commit | 230fc4f3b2fa72980787a5f86c850f02bb193187 (patch) | |
tree | 74e807adfb7f2455c65553dd22700a7222bf81de /drivers/net/wireless/ath/ath5k/debug.h | |
parent | afe86286a166881d2ae7ce4469036735254d1263 (diff) |
ath5k: remove ATH_TRACE macro
Now that we have ftrace, it is not needed any more.
Signed-off-by: Bruno Randolf <br1@einfach.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/debug.h')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/debug.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath5k/debug.h b/drivers/net/wireless/ath/ath5k/debug.h index ddd5b3a99e8d..bd1658729141 100644 --- a/drivers/net/wireless/ath/ath5k/debug.h +++ b/drivers/net/wireless/ath/ath5k/debug.h | |||
@@ -115,18 +115,12 @@ enum ath5k_debug_level { | |||
115 | ATH5K_DEBUG_DUMP_RX = 0x00000100, | 115 | ATH5K_DEBUG_DUMP_RX = 0x00000100, |
116 | ATH5K_DEBUG_DUMP_TX = 0x00000200, | 116 | ATH5K_DEBUG_DUMP_TX = 0x00000200, |
117 | ATH5K_DEBUG_DUMPBANDS = 0x00000400, | 117 | ATH5K_DEBUG_DUMPBANDS = 0x00000400, |
118 | ATH5K_DEBUG_TRACE = 0x00001000, | ||
119 | ATH5K_DEBUG_ANI = 0x00002000, | 118 | ATH5K_DEBUG_ANI = 0x00002000, |
120 | ATH5K_DEBUG_ANY = 0xffffffff | 119 | ATH5K_DEBUG_ANY = 0xffffffff |
121 | }; | 120 | }; |
122 | 121 | ||
123 | #ifdef CONFIG_ATH5K_DEBUG | 122 | #ifdef CONFIG_ATH5K_DEBUG |
124 | 123 | ||
125 | #define ATH5K_TRACE(_sc) do { \ | ||
126 | if (unlikely((_sc)->debug.level & ATH5K_DEBUG_TRACE)) \ | ||
127 | printk(KERN_DEBUG "ath5k trace %s:%d\n", __func__, __LINE__); \ | ||
128 | } while (0) | ||
129 | |||
130 | #define ATH5K_DBG(_sc, _m, _fmt, ...) do { \ | 124 | #define ATH5K_DBG(_sc, _m, _fmt, ...) do { \ |
131 | if (unlikely((_sc)->debug.level & (_m) && net_ratelimit())) \ | 125 | if (unlikely((_sc)->debug.level & (_m) && net_ratelimit())) \ |
132 | ATH5K_PRINTK(_sc, KERN_DEBUG, "(%s:%d): " _fmt, \ | 126 | ATH5K_PRINTK(_sc, KERN_DEBUG, "(%s:%d): " _fmt, \ |
@@ -168,8 +162,6 @@ ath5k_debug_printtxbuf(struct ath5k_softc *sc, struct ath5k_buf *bf); | |||
168 | 162 | ||
169 | #include <linux/compiler.h> | 163 | #include <linux/compiler.h> |
170 | 164 | ||
171 | #define ATH5K_TRACE(_sc) typecheck(struct ath5k_softc *, (_sc)) | ||
172 | |||
173 | static inline void __attribute__ ((format (printf, 3, 4))) | 165 | static inline void __attribute__ ((format (printf, 3, 4))) |
174 | ATH5K_DBG(struct ath5k_softc *sc, unsigned int m, const char *fmt, ...) {} | 166 | ATH5K_DBG(struct ath5k_softc *sc, unsigned int m, const char *fmt, ...) {} |
175 | 167 | ||