summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2013-12-22 10:49:41 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2013-12-22 10:49:41 +0000
commite2fe10d60d92ade73a95e0b4c8c844d6ab15f717 (patch)
treec56627ddc81af00388cffe3def26e58a2087e67d /sys/dev/pci
parentab123f4a7cb40c4a74b01b4de75ebf813b834036 (diff)
size_t format string fixes
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/vioscsi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/vioscsi.c b/sys/dev/pci/vioscsi.c
index 614e6133636..612f36959cc 100644
--- a/sys/dev/pci/vioscsi.c
+++ b/sys/dev/pci/vioscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vioscsi.c,v 1.1 2013/12/20 21:50:49 matthew Exp $ */
+/* $OpenBSD: vioscsi.c,v 1.2 2013/12/22 10:49:40 sf Exp $ */
/*
* Copyright (c) 2013 Google Inc.
*
@@ -304,7 +304,7 @@ vioscsi_req_done(struct vioscsi_softc *sc, struct virtio_softc *vsc,
xs->status = vr->vr_res.status;
xs->resid = vr->vr_res.residual;
- DPRINTF("vioscsi_req_done: done %d, %d, %d\n",
+ DPRINTF("vioscsi_req_done: done %d, %d, %zd\n",
xs->error, xs->status, xs->resid);
done:
@@ -422,7 +422,7 @@ vioscsi_alloc_reqs(struct vioscsi_softc *sc, struct virtio_softc *vsc,
r = bus_dmamem_alloc(vsc->sc_dmat, allocsize, 0, 0,
&sc->sc_reqs_segs[0], 1, &rsegs, BUS_DMA_NOWAIT);
if (r != 0) {
- printf("bus_dmamem_alloc, size %d, error %d\n",
+ printf("bus_dmamem_alloc, size %zd, error %d\n",
allocsize, r);
return 1;
}