diff options
author | slvr <slvr@unsafeio.com> | 2013-08-13 09:55:49 +0100 |
---|---|---|
committer | slvr <slvr@unsafeio.com> | 2013-08-13 09:55:49 +0100 |
commit | 471c14809004bd0ac531cbb79b06906f128cb666 (patch) | |
tree | 94099d531b83b6892aef8a141a16aada93adb736 | |
parent | 9e3f48c1653137a9211076a7644b8333bb78fe23 (diff) |
Portabily print out uint64_t using PRIu64
-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 | } |