diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/recv.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/debug.h | 8 |
4 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index e04835cb21b5..12069aac1d6c 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -206,7 +206,7 @@ int ath_set_channel(struct ath_softc *sc, struct ieee80211_hw *hw, | |||
206 | r = ath9k_hw_reset(ah, hchan, fastcc); | 206 | r = ath9k_hw_reset(ah, hchan, fastcc); |
207 | if (r) { | 207 | if (r) { |
208 | ath_print(common, ATH_DBG_FATAL, | 208 | ath_print(common, ATH_DBG_FATAL, |
209 | "Unable to reset channel (%u Mhz) " | 209 | "Unable to reset channel (%u MHz), " |
210 | "reset status %d\n", | 210 | "reset status %d\n", |
211 | channel->center_freq, r); | 211 | channel->center_freq, r); |
212 | spin_unlock_bh(&sc->sc_resetlock); | 212 | spin_unlock_bh(&sc->sc_resetlock); |
@@ -869,7 +869,7 @@ void ath_radio_enable(struct ath_softc *sc, struct ieee80211_hw *hw) | |||
869 | r = ath9k_hw_reset(ah, ah->curchan, false); | 869 | r = ath9k_hw_reset(ah, ah->curchan, false); |
870 | if (r) { | 870 | if (r) { |
871 | ath_print(common, ATH_DBG_FATAL, | 871 | ath_print(common, ATH_DBG_FATAL, |
872 | "Unable to reset channel %u (%uMhz) ", | 872 | "Unable to reset channel (%u MHz), " |
873 | "reset status %d\n", | 873 | "reset status %d\n", |
874 | channel->center_freq, r); | 874 | channel->center_freq, r); |
875 | } | 875 | } |
@@ -924,7 +924,7 @@ void ath_radio_disable(struct ath_softc *sc, struct ieee80211_hw *hw) | |||
924 | r = ath9k_hw_reset(ah, ah->curchan, false); | 924 | r = ath9k_hw_reset(ah, ah->curchan, false); |
925 | if (r) { | 925 | if (r) { |
926 | ath_print(ath9k_hw_common(sc->sc_ah), ATH_DBG_FATAL, | 926 | ath_print(ath9k_hw_common(sc->sc_ah), ATH_DBG_FATAL, |
927 | "Unable to reset channel %u (%uMhz) " | 927 | "Unable to reset channel (%u MHz), " |
928 | "reset status %d\n", | 928 | "reset status %d\n", |
929 | channel->center_freq, r); | 929 | channel->center_freq, r); |
930 | } | 930 | } |
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 40b5d05edcce..1ca42e5148c8 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c | |||
@@ -429,7 +429,7 @@ static void ath_rx_ps(struct ath_softc *sc, struct sk_buff *skb) | |||
429 | sc->ps_flags &= ~PS_WAIT_FOR_PSPOLL_DATA; | 429 | sc->ps_flags &= ~PS_WAIT_FOR_PSPOLL_DATA; |
430 | ath_print(common, ATH_DBG_PS, | 430 | ath_print(common, ATH_DBG_PS, |
431 | "Going back to sleep after having received " | 431 | "Going back to sleep after having received " |
432 | "PS-Poll data (0x%x)\n", | 432 | "PS-Poll data (0x%lx)\n", |
433 | sc->ps_flags & (PS_WAIT_FOR_BEACON | | 433 | sc->ps_flags & (PS_WAIT_FOR_BEACON | |
434 | PS_WAIT_FOR_CAB | | 434 | PS_WAIT_FOR_CAB | |
435 | PS_WAIT_FOR_PSPOLL_DATA | | 435 | PS_WAIT_FOR_PSPOLL_DATA | |
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index a6893cf0c43b..3c790a4f38f7 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -1857,7 +1857,7 @@ static void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb, | |||
1857 | sc->ps_flags &= ~PS_WAIT_FOR_TX_ACK; | 1857 | sc->ps_flags &= ~PS_WAIT_FOR_TX_ACK; |
1858 | ath_print(common, ATH_DBG_PS, | 1858 | ath_print(common, ATH_DBG_PS, |
1859 | "Going back to sleep after having " | 1859 | "Going back to sleep after having " |
1860 | "received TX status (0x%x)\n", | 1860 | "received TX status (0x%lx)\n", |
1861 | sc->ps_flags & (PS_WAIT_FOR_BEACON | | 1861 | sc->ps_flags & (PS_WAIT_FOR_BEACON | |
1862 | PS_WAIT_FOR_CAB | | 1862 | PS_WAIT_FOR_CAB | |
1863 | PS_WAIT_FOR_PSPOLL_DATA | | 1863 | PS_WAIT_FOR_PSPOLL_DATA | |
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 */ |