diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-10-01 20:06:04 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-10-01 20:06:04 +0000 |
commit | 8df653d188782d1d8cd2094e2536882b1f060801 (patch) | |
tree | 7e9167ebaa037e7b509c3c98ff6492433311e158 /sys/dev/pci/if_wpi.c | |
parent | ba7fbfcdbf1c89cb49aa02de612a679f55b93140 (diff) |
Use %z* for size_t
while there, fix a few %d into %u
Diffstat (limited to 'sys/dev/pci/if_wpi.c')
-rw-r--r-- | sys/dev/pci/if_wpi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c index 2ceb88661e3..70951895924 100644 --- a/sys/dev/pci/if_wpi.c +++ b/sys/dev/pci/if_wpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wpi.c,v 1.112 2013/08/07 01:06:39 bluhm Exp $ */ +/* $OpenBSD: if_wpi.c,v 1.113 2013/10/01 20:06:02 sf Exp $ */ /*- * Copyright (c) 2006-2008 @@ -2987,7 +2987,7 @@ wpi_read_firmware(struct wpi_softc *sc) return error; } if (size < sizeof (*hdr)) { - printf("%s: truncated firmware header: %d bytes\n", + printf("%s: truncated firmware header: %zu bytes\n", sc->sc_dev.dv_xname, size); free(fw->data, M_DEVBUF); return EINVAL; @@ -3016,7 +3016,7 @@ wpi_read_firmware(struct wpi_softc *sc) /* Check that all firmware sections fit. */ if (size < sizeof (*hdr) + fw->main.textsz + fw->main.datasz + fw->init.textsz + fw->init.datasz + fw->boot.textsz) { - printf("%s: firmware file too short: %d bytes\n", + printf("%s: firmware file too short: %zu bytes\n", sc->sc_dev.dv_xname, size); free(fw->data, M_DEVBUF); return EINVAL; |