Changeset 2344

Show
Ignore:
Timestamp:
05/17/07 00:13:10 (2 years ago)
Author:
mentor
Message:

Cast u_int64_t to unsigned long long for printf format specifier %llu, for some 64 bit architectures

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ath/if_ath.c

    r2319 r2344  
    38593859                        "%s: %s beacons, bslot %d intval %u tsfadjust(Kus) %llu\n", 
    38603860                        __func__, sc->sc_stagbeacons ? "stagger" : "burst", 
    3861                         avp->av_bslot, ni->ni_intval, (long long) tuadjust); 
     3861                        avp->av_bslot, ni->ni_intval, (unsigned long long) tuadjust); 
    38623862 
    38633863                wh = (struct ieee80211_frame *) skb->data; 
     
    41794179                DPRINTF(sc, ATH_DEBUG_BEACON_PROC, 
    41804180                        "%s: slot %d [tsf %llu tsftu %u intval %u] vap %p\n", 
    4181                         __func__, slot, (long long) tsf, tsftu, ic->ic_lintval, vap); 
     4181                        __func__, slot, (unsigned long long) tsf, tsftu, ic->ic_lintval, vap); 
    41824182                bfaddr = 0; 
    41834183                if (vap != NULL) { 
     
    45304530                        "%s: tsf %llu tsf:tu %u intval %u nexttbtt %u dtim %u nextdtim %u bmiss %u sleep %u cfp:period %u maxdur %u next %u timoffset %u\n", 
    45314531                        __func__, 
    4532                         (long long) tsf, tsftu, 
     4532                        (unsigned long long) tsf, tsftu, 
    45334533                        bs.bs_intval, 
    45344534                        bs.bs_nexttbtt, 
     
    54555455                                DPRINTF(sc, ATH_DEBUG_STATE, 
    54565456                                        "ibss merge, rstamp %u tsf %llu " 
    5457                                         "tstamp %llu\n", rstamp, (long long) tsf, 
    5458                                         (long long) le64_to_cpu(ni->ni_tstamp.tsf)); 
     5457                                        "tstamp %llu\n", rstamp, (unsigned long long) tsf, 
     5458                                        (unsigned long long) le64_to_cpu(ni->ni_tstamp.tsf)); 
    54595459                                (void) ieee80211_ibss_merge(ni); 
    54605460                        } 
  • trunk/net80211/ieee80211_crypto.c

    r2277 r2344  
    450450 
    451451        IEEE80211_DPRINTF(vap, IEEE80211_MSG_CRYPTO, 
    452                 "%s: %s keyix %u flags 0x%x tsc %llu len %u\n", 
    453                 __func__, key->wk_cipher->ic_name, 
    454                 key->wk_keyix, key->wk_flags, 
    455                 key->wk_keytsc, key->wk_keylen); 
     452                "%s: %s keyix %u flags 0x%x tsc %llu len %u\n", __func__,  
     453                key->wk_cipher->ic_name, key->wk_keyix, key->wk_flags, 
     454                (unsigned long long)key->wk_keytsc, key->wk_keylen); 
    456455 
    457456        keyix = key->wk_keyix; 
     
    530529 
    531530        IEEE80211_DPRINTF(vap, IEEE80211_MSG_CRYPTO, 
    532                 "%s: %s keyix %u flags 0x%x mac %s  tsc %llu len %u\n", 
    533                 __func__, cip->ic_name, key->wk_keyix, 
    534                 key->wk_flags, ether_sprintf(macaddr), 
    535                 key->wk_keytsc, key->wk_keylen); 
     531                "%s: %s keyix %u flags 0x%x mac %s  tsc %llu len %u\n", __func__,  
     532                cip->ic_name, key->wk_keyix, key->wk_flags,  
     533                ether_sprintf(macaddr), (unsigned long long)key->wk_keytsc,  
     534                key->wk_keylen); 
    536535 
    537536        /* 
  • trunk/net80211/ieee80211_crypto_ccmp.c

    r2270 r2344  
    655655                        wh->i_addr2, 
    656656                        "AES-CCM decrypt failed; MIC mismatch (keyix %u, rsc %llu)", 
    657                         key->wk_keyix, pn); 
     657                        key->wk_keyix, (unsigned long long)pn); 
    658658                ctx->cc_vap->iv_stats.is_rx_ccmpmic++; 
    659659                return 0; 
  • trunk/net80211/ieee80211_crypto_tkip.c

    r2028 r2344  
    10391039                IEEE80211_DPRINTF(vap, IEEE80211_MSG_CRYPTO, 
    10401040                        "[%s] TKIP ICV mismatch on decrypt (keyix %d, rsc %llu)\n", 
    1041                         ether_sprintf(wh->i_addr2), key->wk_keyix, ctx->rx_rsc); 
     1041                        ether_sprintf(wh->i_addr2), key->wk_keyix,  
     1042                        (unsigned long long)ctx->rx_rsc); 
    10421043                vap->iv_stats.is_rx_tkipicv++; 
    10431044                return 0; 
  • trunk/net80211/ieee80211_linux.c

    r2277 r2344  
    249249                        "tx_packets=%u\ntx_bytes=%llu\n", tag,  
    250250                        ether_sprintf(ni->ni_macaddr), ni->ni_stats.ns_rx_data,  
    251                         ni->ni_stats.ns_rx_bytes, ni->ni_stats.ns_tx_data,  
    252                         ni->ni_stats.ns_tx_bytes); 
     251                        (unsigned long long)ni->ni_stats.ns_rx_bytes,  
     252                        ni->ni_stats.ns_tx_data,  
     253                        (unsigned long long)ni->ni_stats.ns_tx_bytes); 
    253254        memset(&wreq, 0, sizeof(wreq)); 
    254255        wreq.data.length = strlen(buf); 
     
    282283        IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, 
    283284                "%s replay detected <keyix %d, rsc %llu >", 
    284                 k->wk_cipher->ic_name, k->wk_keyix, rsc ); 
     285                k->wk_cipher->ic_name, k->wk_keyix,  
     286                (unsigned long long)rsc ); 
    285287 
    286288        /* TODO: needed parameters: count, keyid, key type, src address, TSC */