From 4abd189d52498428c2111e7547393375a22dd605 Mon Sep 17 00:00:00 2001 From: Joe Mattiello Date: Fri, 14 Oct 2022 03:28:11 -0400 Subject: [PATCH] Update apic.c fix format string errors on M1 Mac This line caused compile issue with long with llu. --- src/hardware/apic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/apic.c b/src/hardware/apic.c index 118f523..a2f8c78 100644 --- a/src/hardware/apic.c +++ b/src/hardware/apic.c @@ -559,7 +559,7 @@ int apic_next(itick_t now) if (apic.timer_next <= now) { // Raise interrupt if(!(info & 1)) {// LVT_DISABLED set to 0 - APIC_LOG(" timer period %ld cur=%ld next=%ld\n", apic_get_period(), now, apic.timer_next); + APIC_LOG(" timer period %llu cur=%llu next=%llu\n", apic_get_period(), now, apic.timer_next); apic_receive_bus_message(apic.lvt[LVT_INDEX_TIMER] & 0xFF, LVT_DELIVERY_FIXED, 0); } else apic_timer_enabled = 0; @@ -600,4 +600,4 @@ void apic_init(struct pc_settings* pc) int apic_is_enabled(void) { return apic.enabled; -} \ No newline at end of file +}