aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-01-12 03:38:11 (GMT)
committerJouni Malinen <j@w1.fi>2008-01-12 03:38:11 (GMT)
commit36c454c14774bd439169e5bd8666dfefa10b07bb (patch)
tree8c32e501f700de19795d516e2acbdc1f08e1e622 /hostapd
parent86d2de242f81d3debf641ae11bf519c918c24003 (diff)
downloadhostap-history-36c454c14774bd439169e5bd8666dfefa10b07bb.zip
hostap-history-36c454c14774bd439169e5bd8666dfefa10b07bb.tar.gz
hostap-history-36c454c14774bd439169e5bd8666dfefa10b07bb.tar.bz2
Fixed printf format for size_t on 64-bit targets
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/driver_madwifi.c3
-rw-r--r--hostapd/wps_hostapd.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/hostapd/driver_madwifi.c b/hostapd/driver_madwifi.c
index e37b607..84adf16 100644
--- a/hostapd/driver_madwifi.c
+++ b/hostapd/driver_madwifi.c
@@ -750,7 +750,8 @@ madwifi_set_wps_ie(void *priv, const u8 *ie, size_t len, u32 frametype)
u8 buf[256];
struct ieee80211req_getset_appiebuf *beac_ie;
- wpa_printf(MSG_DEBUG, "%s buflen = %d", __func__, len);
+ wpa_printf(MSG_DEBUG, "%s buflen = %lu", __func__,
+ (unsigned long) len);
beac_ie = (struct ieee80211req_getset_appiebuf *) buf;
beac_ie->app_frmtype = frametype;
diff --git a/hostapd/wps_hostapd.c b/hostapd/wps_hostapd.c
index ee9e779..29611d3 100644
--- a/hostapd/wps_hostapd.c
+++ b/hostapd/wps_hostapd.c
@@ -37,7 +37,8 @@ static int hostapd_wps_new_psk_cb(void *ctx, const u8 *mac_addr, const u8 *psk,
wpa_hexdump_key(MSG_DEBUG, "Per-device PSK", psk, psk_len);
if (psk_len != PMK_LEN) {
- wpa_printf(MSG_DEBUG, "Unexpected PSK length %d", psk_len);
+ wpa_printf(MSG_DEBUG, "Unexpected PSK length %lu",
+ (unsigned long) psk_len);
return -1;
}