From 38aef85f6a173aa84d746dcf6348b4b7d0bb4cea Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Tue, 29 Mar 2016 18:46:20 +0100 Subject: [PATCH] fix some pedantic xhyve build issues with newer toolchain Signed-off-by: Justin Cormack --- xhyve/src/pci_virtio_9p.c | 2 +- xhyve/src/vmm/io/vhpet.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xhyve/src/pci_virtio_9p.c b/xhyve/src/pci_virtio_9p.c index 2af59ff8c..319519345 100644 --- a/xhyve/src/pci_virtio_9p.c +++ b/xhyve/src/pci_virtio_9p.c @@ -212,7 +212,7 @@ pci_vt9p_notify(void *vsc, struct vqueue_info *vq) } if (wiov == NULL && (flags[i] & VRING_DESC_F_WRITE)) { wiov = &iov[i]; - DPRINTF(("vt9p wiov is %p\r\n", wiov)); + DPRINTF(("vt9p wiov is %p\r\n", (void *)wiov)); } } /* do this properly */ diff --git a/xhyve/src/vmm/io/vhpet.c b/xhyve/src/vmm/io/vhpet.c index 1d8186196..5ca1e4ca1 100644 --- a/xhyve/src/vmm/io/vhpet.c +++ b/xhyve/src/vmm/io/vhpet.c @@ -291,7 +291,7 @@ vhpet_handler(void *a) callout_deactivate(callout); if (!vhpet_counter_enabled(vhpet)) - xhyve_abort("vhpet(%p) callout with counter disabled\n", vhpet); + xhyve_abort("vhpet(%p) callout with counter disabled\n", (void *)vhpet); counter = vhpet_counter(vhpet, &now); vhpet_start_timer(vhpet, n, counter, now);