We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c0be5d commit 7360bc3Copy full SHA for 7360bc3
src/timer.c
@@ -6,6 +6,7 @@
6
#include <math.h>
7
#include <sys/time.h>
8
#include <time.h>
9
+#include <inttypes.h>
10
11
// Emulate BIOS time
12
static uint32_t bios_timer = 0;
@@ -66,7 +67,7 @@ static long get_timer_clock(void)
66
67
static uint16_t get_actual_timer(struct i8253_timer *t)
68
{
69
uint64_t elapsed = get_timer_clock() - t->load_time;
- debug(debug_int, "timer elapsed: %ld\n", elapsed);
70
+ debug(debug_int, "timer elapsed: %" PRIu64 "\n", elapsed);
71
switch(t->op_mode & 7)
72
73
case 2: // RATE GENERATOR
0 commit comments