{
        struct ath5k_softc *sc = file->private_data;
        char buf[100];
-       snprintf(buf, sizeof(buf), "0x%016llx\n", ath5k_hw_get_tsf64(sc->ah));
+       snprintf(buf, sizeof(buf), "0x%016llx\n",
+                (unsigned long long)ath5k_hw_get_tsf64(sc->ah));
        return simple_read_from_buffer(user_buf, count, ppos, buf, 19);
 }
 
 
        tsf = ath5k_hw_get_tsf64(sc->ah);
        len += snprintf(buf+len, sizeof(buf)-len,
-               "TSF\t\t0x%016llx\tTU: %08x\n", tsf, TSF_TO_TU(tsf));
+               "TSF\t\t0x%016llx\tTU: %08x\n",
+               (unsigned long long)tsf, TSF_TO_TU(tsf));
 
        return simple_read_from_buffer(user_buf, count, ppos, buf, len);
 }
 
        iwl4965_hwrate_to_tx_control(priv, agg->rate_n_flags,
                                     &tx_status->control);
 
-       IWL_DEBUG_TX_REPLY("Bitmap %llx\n", bitmap);
+       IWL_DEBUG_TX_REPLY("Bitmap %llx\n", (unsigned long long)bitmap);
 
        return 0;
 }
                           "%d, scd_ssn = %d\n",
                           ba_resp->tid,
                           ba_resp->seq_ctl,
-                          ba_resp->bitmap,
+                          (unsigned long long)ba_resp->bitmap,
                           ba_resp->scd_flow,
                           ba_resp->scd_ssn);
        IWL_DEBUG_TX_REPLY("DAT start_idx = %d, bitmap = 0x%llx \n",
                           agg->start_idx,
-                          agg->bitmap);
+                          (unsigned long long)agg->bitmap);
 
        /* Update driver's record of ACK vs. not for each frame in window */
        iwl4965_tx_status_reply_compressed_ba(priv, agg, ba_resp);