From 471c14809004bd0ac531cbb79b06906f128cb666 Mon Sep 17 00:00:00 2001 From: slvr Date: Tue, 13 Aug 2013 09:55:49 +0100 Subject: Portabily print out uint64_t using PRIu64 --- core/timer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/timer.c') 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 @@ +#define __STDC_FORMAT_MACROS +#include + #include "timer.h" #include "network.h" -#include /* A nested linked list increases efficiency of insertions. @@ -267,7 +269,7 @@ void timer_debug_print() timer* t = timer_main_queue; printf("Queue:\n"); while (t) { - printf("%lli (%lli) : %s\n", t->deadline, t->deadline/US_PER_SECOND, (char*)t->userdata); + printf("%" PRIu64 " (%" PRIu64 ") : %s\n", t->deadline, t->deadline/US_PER_SECOND, (char*)t->userdata); t = t->_next; } } -- cgit v1.2.3