diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/timer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/timer.c b/core/timer.c index 8c278434..06e25693 100644 --- a/core/timer.c +++ b/core/timer.c | |||
@@ -1,6 +1,8 @@ | |||
1 | #define __STDC_FORMAT_MACROS | ||
2 | #include <inttypes.h> | ||
3 | |||
1 | #include "timer.h" | 4 | #include "timer.h" |
2 | #include "network.h" | 5 | #include "network.h" |
3 | #include <stdint.h> | ||
4 | 6 | ||
5 | /* | 7 | /* |
6 | A nested linked list increases efficiency of insertions. | 8 | A nested linked list increases efficiency of insertions. |
@@ -267,7 +269,7 @@ void timer_debug_print() | |||
267 | timer* t = timer_main_queue; | 269 | timer* t = timer_main_queue; |
268 | printf("Queue:\n"); | 270 | printf("Queue:\n"); |
269 | while (t) { | 271 | while (t) { |
270 | printf("%lli (%lli) : %s\n", t->deadline, t->deadline/US_PER_SECOND, (char*)t->userdata); | 272 | printf("%" PRIu64 " (%" PRIu64 ") : %s\n", t->deadline, t->deadline/US_PER_SECOND, (char*)t->userdata); |
271 | t = t->_next; | 273 | t = t->_next; |
272 | } | 274 | } |
273 | } | 275 | } |