Skip to content

Commit

Permalink
WDEV: ath5k, typecheck on nonDEBUG
Browse files Browse the repository at this point in the history
At least type check the ATH5K_TRACE paramter on !ATH5K_DEBUG configs.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Nick Kossifidis <mickflemm@gmail.com>
Acked-by: Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Jiri Slaby authored and John W. Linville committed Feb 29, 2008
1 parent 6e33e30 commit 6cd74e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/wireless/ath5k/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...) {}
Expand Down

0 comments on commit 6cd74e3

Please sign in to comment.