summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2014-06-26 07:46:17 +0000
committerjasper <jasper@openbsd.org>2014-06-26 07:46:17 +0000
commitb0a9c297ce9047b600051553559dd2c78f83efb1 (patch)
tree6b95ab3ffc139c1010140520061191712d9f6e90
parentWork around compatibility problems with Intel ahci and Intel SSDs by retrying (diff)
downloadwireguard-openbsd-b0a9c297ce9047b600051553559dd2c78f83efb1.tar.xz
wireguard-openbsd-b0a9c297ce9047b600051553559dd2c78f83efb1.zip
fix format string when compiled with VIRTIO_DEBUG
ok sf@
-rw-r--r--sys/dev/pci/virtio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/virtio.c b/sys/dev/pci/virtio.c
index 72e8df48f23..257b23180c5 100644
--- a/sys/dev/pci/virtio.c
+++ b/sys/dev/pci/virtio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: virtio.c,v 1.6 2014/06/15 11:18:39 sf Exp $ */
+/* $OpenBSD: virtio.c,v 1.7 2014/06/26 07:46:17 jasper Exp $ */
/* $NetBSD: virtio.c,v 1.3 2011/11/02 23:05:52 njoly Exp $ */
/*
@@ -608,8 +608,8 @@ virtio_enqueue(struct virtqueue *vq, int slot, bus_dmamap_t dmamap, int write)
if (dmamap->dm_nsegs > vq->vq_maxnsegs) {
#if VIRTIO_DEBUG
for (i = 0; i < dmamap->dm_nsegs; i++) {
- printf(" %d (%d): %p %u \n", i, write,
- dmamap->dm_segs[i].ds_addr,
+ printf(" %d (%d): %p %lx \n", i, write,
+ (void *)dmamap->dm_segs[i].ds_addr,
dmamap->dm_segs[i].ds_len);
}
#endif