Portabily print out uint64_t using PRIu64

This commit is contained in:
slvr 2013-08-13 09:55:49 +01:00
parent 9e3f48c165
commit 471c148090

View File

@ -1,6 +1,8 @@
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include "timer.h" #include "timer.h"
#include "network.h" #include "network.h"
#include <stdint.h>
/* /*
A nested linked list increases efficiency of insertions. A nested linked list increases efficiency of insertions.
@ -267,7 +269,7 @@ void timer_debug_print()
timer* t = timer_main_queue; timer* t = timer_main_queue;
printf("Queue:\n"); printf("Queue:\n");
while (t) { 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; t = t->_next;
} }
} }