|
@@ -165,7 +165,9 @@ ath5k_debug_printtxbuf(struct ath5k_softc *sc,
|
|
|
|
|
|
#else /* no debugging */
|
|
|
|
|
|
-#define ATH5K_TRACE(_sc) /* empty */
|
|
|
+#include <linux/compiler.h>
|
|
|
+
|
|
|
+#define ATH5K_TRACE(_sc) typecheck(struct ath5k_softc *, (_sc))
|
|
|
|
|
|
static inline void __attribute__ ((format (printf, 3, 4)))
|
|
|
ATH5K_DBG(struct ath5k_softc *sc, unsigned int m, const char *fmt, ...) {}
|