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 <jeremyhu@apple.com>
This commit is contained in:
parent
598ac3afc0
commit
f5f2296913
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue