Download raw body.
iwi: use %td for ptrdiff_t
Hola tech@!
I noticed that we using %d modifier instead of %td in certain places in
the iwi driver. If IWI_DEBUG is set, this causes build failure on i386.
With best regards,
Nazarenko Mykyta
Index: sys/dev/pci/if_iwi.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/if_iwi.c,v
diff -u -p -u -r1.149 if_iwi.c
--- sys/dev/pci/if_iwi.c 24 May 2024 06:02:53 -0000 1.149
+++ sys/dev/pci/if_iwi.c 6 Sep 2026 16:36:30 -0000
@@ -2084,7 +2086,7 @@ iwi_auth_and_assoc(struct iwi_softc *sc)
iwi_update_edca(ic);
frm = ieee80211_add_qos_capability(buf, ic);
- DPRINTF(("Setting QoS Capability IE length %d\n", frm - buf));
+ DPRINTF(("Setting QoS Capability IE length %td\n", frm - buf));
error = iwi_cmd(sc, IWI_CMD_SET_QOS_CAP, buf, frm - buf, 1);
if (error != 0)
return error;
@@ -2095,7 +2097,7 @@ iwi_auth_and_assoc(struct iwi_softc *sc)
frm = ieee80211_add_rsn(buf, ic, ni);
else
frm = ieee80211_add_wpa(buf, ic, ni);
- DPRINTF(("Setting RSN IE length %d\n", frm - buf));
+ DPRINTF(("Setting RSN IE length %td\n", frm - buf));
error = iwi_cmd(sc, IWI_CMD_SET_OPTIE, buf, frm - buf, 1);
if (error != 0)
return error;
iwi: use %td for ptrdiff_t