summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-06-26 07:46:18 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2014-06-26 07:46:18 +0000
commit0137082b3c9ed6dd09a88b2974f47695b0357e24 (patch)
treec3c178176592ba3a9addf973b804a98ec945f6eb /sys/dev/pci
parent55c4dd97f88861d9fd9b5b35635d8b8be7168fb4 (diff)
fix format string when compiled with VIRTIO_DEBUG
ok sf@
Diffstat (limited to 'sys/dev/pci')
-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