diff options
author | adrian <adrian@FreeBSD.org> | 2014-05-07 19:07:45 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2014-05-07 19:07:45 +0000 |
commit | 2ce67bd5c38994302ec0b63edebfa612d01dde96 (patch) | |
tree | fbf25b8290832a2985c2653063aba17f3a5af8f4 | |
parent | f0005143153a97aa9ed1a3b78124f42a5c22f6fb (diff) | |
download | FreeBSD-src-2ce67bd5c38994302ec0b63edebfa612d01dde96.zip FreeBSD-src-2ce67bd5c38994302ec0b63edebfa612d01dde96.tar.gz |
Add casts to have it compile on amd64 without complaining about
mismatched types.
Tested:
* AR9280, TDMA slave, amd64.
-rw-r--r-- | sys/dev/ath/if_ath_tdma.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/dev/ath/if_ath_tdma.c b/sys/dev/ath/if_ath_tdma.c index 3ea70e3..de1a91c 100644 --- a/sys/dev/ath/if_ath_tdma.c +++ b/sys/dev/ath/if_ath_tdma.c @@ -477,16 +477,19 @@ ath_tdma_update(struct ieee80211_node *ni, DPRINTF(sc, ATH_DEBUG_TDMA_TIMER, "rs->rstamp %llu rstamp %llu tsf %llu txtime %d, nextslot %llu, " "nextslottu %d, nextslottume %d\n", - (unsigned long long) rs->rs_tstamp, rstamp, tsf, txtime, - nextslot, nextslottu, TSF_TO_TU(nextslot >> 32, nextslot)); + (unsigned long long) rs->rs_tstamp, + (unsigned long long) rstamp, + (unsigned long long) tsf, txtime, + (unsigned long long) nextslot, + nextslottu, TSF_TO_TU(nextslot >> 32, nextslot)); DPRINTF(sc, ATH_DEBUG_TDMA, " beacon tstamp: %llu (0x%016llx)\n", - le64toh(ni->ni_tstamp.tsf), - le64toh(ni->ni_tstamp.tsf)); + (unsigned long long) le64toh(ni->ni_tstamp.tsf), + (unsigned long long) le64toh(ni->ni_tstamp.tsf)); DPRINTF(sc, ATH_DEBUG_TDMA_TIMER, "nexttbtt %llu (0x%08llx) tsfdelta %d avg +%d/-%d\n", - nexttbtt, + (unsigned long long) nexttbtt, (long long) nexttbtt, tsfdelta, TDMA_AVG(sc->sc_avgtsfdeltap), TDMA_AVG(sc->sc_avgtsfdeltam)); @@ -580,7 +583,7 @@ ath_tdma_update(struct ieee80211_node *ni, DPRINTF(sc, ATH_DEBUG_TDMA_TIMER, "%s: calling ath_hal_adjusttsf: TSF=%llu, tsfdelta=%d\n", __func__, - tsf, + (unsigned long long) tsf, tsfdelta); #ifdef ATH_DEBUG_ALQ |