d80211: Fix 64bit printk warnings
Subsystems (2)
PATCH 1/1 d80211: Fix 64bit printk warnings
Fix several warnings due to incompatible datatypes on 64bit platforms.
Signed-off-by Michael Buesch <[email protected]>
net/d80211/ieee80211_sta.c +6 -3
@@ -1371,9 +1371,12 @@ static void ieee80211_rx_bss_info(structif (time_after (jiffies, last_tsf_debug +5 *HZ )) {printk (KERN_DEBUG "RX beacon SA=" MAC_FMT " BSSID=" MAC_FMT " TSF=0x%llx BCN=0x%llx diff=%lld " -"@%ld\n" , +"@%lu\n" ,MAC_ARG (mgmt->sa),MAC_ARG (mgmt->bssid), - tsf, timestamp, tsf - timestamp, jiffies); + (unsigned long long )tsf, + (unsigned long long )timestamp, + (unsigned long long )(tsf - timestamp), + jiffies); last_tsf_debug = jiffies; }#endif /* CONFIG_D80211_IBSS_DEBUG */
@@ -2697,7 +2700,7 @@ ieee80211_sta_scan_result(struct net_devif (buf) {memset (&iwe,0 ,sizeof (iwe)); iwe.cmd =IWEVCUSTOM ; -sprintf (buf,"tsf=%016llx" , bss->timestamp); +sprintf (buf,"tsf=%016llx" , (unsigned long long )(bss->timestamp)); iwe.u.data.length =strlen (buf); current_ev =iwe_stream_add_point (current_ev, end_buf, &iwe, buf);
Signature · 1 line
Greetings Michael.