From f66d53f916d569d73dce184cb1749a67250e1770 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 11 Sep 2008 07:57:08 +0000 Subject: [PATCH] fixed gcc4 warnings git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27412 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/timers/x86_hpet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/kernel/arch/x86/timers/x86_hpet.c b/src/system/kernel/arch/x86/timers/x86_hpet.c index 05f68d394b..de31c15f9d 100644 --- a/src/system/kernel/arch/x86/timers/x86_hpet.c +++ b/src/system/kernel/arch/x86/timers/x86_hpet.c @@ -41,7 +41,7 @@ hpet_get_prio(void) static int32 -hpet_timer_interrupt(struct hpet_timer *timer) +hpet_timer_interrupt(void *arg) { return timer_interrupt(); } @@ -141,7 +141,7 @@ hpet_init(struct kernel_args *args) } } - TRACE(("hpet_init: HPET is at %x. Vendor ID: %x.\n", sHPETRegs, HPET_GET_VENDOR_ID(sHPETRegs))); + TRACE(("hpet_init: HPET is at %p. Vendor ID: %lx.\n", sHPETRegs, HPET_GET_VENDOR_ID(sHPETRegs))); /* There is no hpet legacy support, so error out on init */ if (!HPET_IS_LEGACY_CAPABLE(sHPETRegs)) { @@ -151,7 +151,7 @@ hpet_init(struct kernel_args *args) hpet_set_legacy(sHPETRegs, true); TRACE(("hpet_init: HPET does%s support legacy mode.\n", HPET_IS_LEGACY_CAPABLE(sHPETRegs) ? "" : " not")); - TRACE(("hpet_init: HPET supports %d timers, and is %s bits wide.\n", HPET_GET_NUM_TIMERS(sHPETRegs) + 1, HPET_IS_64BIT(sHPETRegs) ? "64" : "32")); + TRACE(("hpet_init: HPET supports %lu timers, and is %s bits wide.\n", HPET_GET_NUM_TIMERS(sHPETRegs) + 1, HPET_IS_64BIT(sHPETRegs) ? "64" : "32")); if (HPET_GET_NUM_TIMERS(sHPETRegs) < 2) { dprintf("hpet_init: HPET does not have at least 3 timers. Skipping.\n");