diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c index e594acc7cd92..d08668a4c2ca 100644 --- a/sys/dev/iwi/if_iwi.c +++ b/sys/dev/iwi/if_iwi.c @@ -2447,7 +2447,7 @@ iwi_init(void *priv) if (fp->datasize < sizeof *hdr) { device_printf(sc->sc_dev, - "firmware image too short: %d bytes\n", fp->datasize); + "firmware image too short: %zu bytes\n", fp->datasize); goto fail2; } @@ -2456,7 +2456,7 @@ iwi_init(void *priv) if (fp->datasize < sizeof *hdr + le32toh(hdr->bootsz) + le32toh(hdr->ucodesz) + le32toh(hdr->mainsz)) { device_printf(sc->sc_dev, - "firmware image too short: %d bytes\n", fp->datasize); + "firmware image too short: %zu bytes\n", fp->datasize); goto fail2; }