From f5f2296913897864b720f9eeb25a2fbb5506e81b Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Fri, 18 Dec 2015 12:32:04 -0800 Subject: [PATCH] Squash a -Wformat-pedantic warning that was added in recent clang src/vmm/io/vhpet.c:294:60: error: format specifies type 'void *' but the argument has type 'struct vhpet *' [-Werror,-Wformat-pedantic] xhyve_abort("vhpet(%p) callout with counter disabled\n", vhpet); ~~ ^~~~~ In file included from src/vmm/io/vhpet.c:35: include/xhyve/support/misc.h:22:19: note: expanded from macro 'xhyve_abort' fprintf(stderr, __VA_ARGS__); \ ^ 1 error generated. Signed-off-by: Jeremy Huddleston Sequoia --- src/vmm/io/vhpet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmm/io/vhpet.c b/src/vmm/io/vhpet.c index 1d81861..5ca1e4c 100644 --- a/src/vmm/io/vhpet.c +++ b/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);