diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2009-05-15 09:29:20 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-20 14:46:25 -0400 |
commit | 6b45784fbe9b31c287ab7f2717e4bd4cdcdd340c (patch) | |
tree | 925a23883764f18b47ef8c514c97e9510f22463f /drivers | |
parent | 5bb644a0fd25a5e083ecbfaa92a211db99aa6ef7 (diff) |
ath9k: Print hw reset failure status as signed int
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index bbbfdcde2727..0e8f6d41a375 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -280,7 +280,7 @@ int ath_set_channel(struct ath_softc *sc, struct ieee80211_hw *hw, | |||
280 | if (r) { | 280 | if (r) { |
281 | DPRINTF(sc, ATH_DBG_FATAL, | 281 | DPRINTF(sc, ATH_DBG_FATAL, |
282 | "Unable to reset channel (%u Mhz) " | 282 | "Unable to reset channel (%u Mhz) " |
283 | "reset status %u\n", | 283 | "reset status %d\n", |
284 | channel->center_freq, r); | 284 | channel->center_freq, r); |
285 | spin_unlock_bh(&sc->sc_resetlock); | 285 | spin_unlock_bh(&sc->sc_resetlock); |
286 | return r; | 286 | return r; |
@@ -1094,7 +1094,7 @@ void ath_radio_enable(struct ath_softc *sc) | |||
1094 | if (r) { | 1094 | if (r) { |
1095 | DPRINTF(sc, ATH_DBG_FATAL, | 1095 | DPRINTF(sc, ATH_DBG_FATAL, |
1096 | "Unable to reset channel %u (%uMhz) ", | 1096 | "Unable to reset channel %u (%uMhz) ", |
1097 | "reset status %u\n", | 1097 | "reset status %d\n", |
1098 | channel->center_freq, r); | 1098 | channel->center_freq, r); |
1099 | } | 1099 | } |
1100 | spin_unlock_bh(&sc->sc_resetlock); | 1100 | spin_unlock_bh(&sc->sc_resetlock); |
@@ -1146,7 +1146,7 @@ void ath_radio_disable(struct ath_softc *sc) | |||
1146 | if (r) { | 1146 | if (r) { |
1147 | DPRINTF(sc, ATH_DBG_FATAL, | 1147 | DPRINTF(sc, ATH_DBG_FATAL, |
1148 | "Unable to reset channel %u (%uMhz) " | 1148 | "Unable to reset channel %u (%uMhz) " |
1149 | "reset status %u\n", | 1149 | "reset status %d\n", |
1150 | channel->center_freq, r); | 1150 | channel->center_freq, r); |
1151 | } | 1151 | } |
1152 | spin_unlock_bh(&sc->sc_resetlock); | 1152 | spin_unlock_bh(&sc->sc_resetlock); |
@@ -1709,7 +1709,7 @@ int ath_reset(struct ath_softc *sc, bool retry_tx) | |||
1709 | r = ath9k_hw_reset(ah, sc->sc_ah->curchan, false); | 1709 | r = ath9k_hw_reset(ah, sc->sc_ah->curchan, false); |
1710 | if (r) | 1710 | if (r) |
1711 | DPRINTF(sc, ATH_DBG_FATAL, | 1711 | DPRINTF(sc, ATH_DBG_FATAL, |
1712 | "Unable to reset hardware; reset status %u\n", r); | 1712 | "Unable to reset hardware; reset status %d\n", r); |
1713 | spin_unlock_bh(&sc->sc_resetlock); | 1713 | spin_unlock_bh(&sc->sc_resetlock); |
1714 | 1714 | ||
1715 | if (ath_startrecv(sc) != 0) | 1715 | if (ath_startrecv(sc) != 0) |
@@ -2001,7 +2001,7 @@ static int ath9k_start(struct ieee80211_hw *hw) | |||
2001 | r = ath9k_hw_reset(sc->sc_ah, init_channel, false); | 2001 | r = ath9k_hw_reset(sc->sc_ah, init_channel, false); |
2002 | if (r) { | 2002 | if (r) { |
2003 | DPRINTF(sc, ATH_DBG_FATAL, | 2003 | DPRINTF(sc, ATH_DBG_FATAL, |
2004 | "Unable to reset hardware; reset status %u " | 2004 | "Unable to reset hardware; reset status %d " |
2005 | "(freq %u MHz)\n", r, | 2005 | "(freq %u MHz)\n", r, |
2006 | curchan->center_freq); | 2006 | curchan->center_freq); |
2007 | spin_unlock_bh(&sc->sc_resetlock); | 2007 | spin_unlock_bh(&sc->sc_resetlock); |
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 41c42824a5ca..3f2bd79f945e 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -1070,7 +1070,7 @@ void ath_drain_all_txq(struct ath_softc *sc, bool retry_tx) | |||
1070 | r = ath9k_hw_reset(ah, sc->sc_ah->curchan, true); | 1070 | r = ath9k_hw_reset(ah, sc->sc_ah->curchan, true); |
1071 | if (r) | 1071 | if (r) |
1072 | DPRINTF(sc, ATH_DBG_FATAL, | 1072 | DPRINTF(sc, ATH_DBG_FATAL, |
1073 | "Unable to reset hardware; reset status %u\n", | 1073 | "Unable to reset hardware; reset status %d\n", |
1074 | r); | 1074 | r); |
1075 | spin_unlock_bh(&sc->sc_resetlock); | 1075 | spin_unlock_bh(&sc->sc_resetlock); |
1076 | } | 1076 | } |