diff options
author | Pavel Roskin <proski@gnu.org> | 2010-01-29 17:22:12 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-01 15:40:04 -0500 |
commit | f643e51d717b52ac28830e8bb98559b006a73bf4 (patch) | |
tree | a25e001912294bd10f58cafe9f43341bec8c180c /drivers/net/wireless/ath/debug.h | |
parent | c6c97bdaa3307d0811f14c99c38c63a8dae36e1f (diff) |
ath: make gcc check format arguments of ath_print(), fix all misuses
Numeric channel is hard to get, so it won't be printed. Replace Mhz
with MHz on the affected lines and add commas as needed.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/debug.h')
-rw-r--r-- | drivers/net/wireless/ath/debug.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/debug.h b/drivers/net/wireless/ath/debug.h index d6b685a06c5e..8263633c003c 100644 --- a/drivers/net/wireless/ath/debug.h +++ b/drivers/net/wireless/ath/debug.h | |||
@@ -65,11 +65,11 @@ enum ATH_DEBUG { | |||
65 | #define ATH_DBG_DEFAULT (ATH_DBG_FATAL) | 65 | #define ATH_DBG_DEFAULT (ATH_DBG_FATAL) |
66 | 66 | ||
67 | #ifdef CONFIG_ATH_DEBUG | 67 | #ifdef CONFIG_ATH_DEBUG |
68 | void ath_print(struct ath_common *common, int dbg_mask, const char *fmt, ...); | 68 | void ath_print(struct ath_common *common, int dbg_mask, const char *fmt, ...) |
69 | __attribute__ ((format (printf, 3, 4))); | ||
69 | #else | 70 | #else |
70 | static inline void ath_print(struct ath_common *common, | 71 | static inline void __attribute__ ((format (printf, 3, 4))) |
71 | int dbg_mask, | 72 | ath_print(struct ath_common *common, int dbg_mask, const char *fmt, ...) |
72 | const char *fmt, ...) | ||
73 | { | 73 | { |
74 | } | 74 | } |
75 | #endif /* CONFIG_ATH_DEBUG */ | 75 | #endif /* CONFIG_ATH_DEBUG */ |