23 lines
1 KiB
Text
23 lines
1 KiB
Text
fix format string
|
|
|
|
Index: cpu/apic.cc
|
|
--- cpu/apic.cc.orig
|
|
+++ cpu/apic.cc
|
|
@@ -26,6 +26,8 @@
|
|
#include "scalar_arith.h"
|
|
#include "iodev/iodev.h"
|
|
|
|
+#include <inttypes.h>
|
|
+
|
|
#if BX_SUPPORT_APIC
|
|
|
|
extern bool simulate_xapic;
|
|
@@ -1176,7 +1178,7 @@ void bx_local_apic_c::set_vmx_preemption_timer(Bit32u
|
|
vmx_preemption_timer_value = value;
|
|
vmx_preemption_timer_initial = bx_pc_system.time_ticks();
|
|
vmx_preemption_timer_fire = ((vmx_preemption_timer_initial >> vmx_preemption_timer_rate) + value) << vmx_preemption_timer_rate;
|
|
- BX_DEBUG(("VMX Preemption timer: value = %u, rate = %u, init = %u, fire = %u", value, vmx_preemption_timer_rate, vmx_preemption_timer_initial, vmx_preemption_timer_fire));
|
|
+ BX_DEBUG(("VMX Preemption timer: value = %u, rate = %u, init = %" PRIu64 ", fire = %" PRIu64, value, vmx_preemption_timer_rate, vmx_preemption_timer_initial, vmx_preemption_timer_fire));
|
|
bx_pc_system.activate_timer_ticks(vmx_timer_handle, vmx_preemption_timer_fire - vmx_preemption_timer_initial, 0);
|
|
vmx_timer_active = 1;
|
|
}
|