From: Rusty Russell Date: Thu, 12 Dec 2013 04:56:50 +0000 (+1030) Subject: timer: fix abortstring on 64 bit platforms. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=8f6c40bce722642ff7e253a675b8ce6cd7e7a091 timer: fix abortstring on 64 bit platforms. Signed-off-by: Rusty Russell --- diff --git a/ccan/timer/timer.c b/ccan/timer/timer.c index 991ec643..cf3bfd9d 100644 --- a/ccan/timer/timer.c +++ b/ccan/timer/timer.c @@ -306,7 +306,8 @@ static bool timer_list_check(const struct list_head *l, if (abortstr) { fprintf(stderr, "%s: timer %p %llu not %llu-%llu\n", - abortstr, t, t->time, min, max); + abortstr, t, (long long)t->time, + (long long)min, (long long)max); abort(); } return false; @@ -315,7 +316,8 @@ static bool timer_list_check(const struct list_head *l, if (abortstr) { fprintf(stderr, "%s: timer %p %llu < minimum %llu\n", - abortstr, t, t->time, first); + abortstr, t, (long long)t->time, + (long long)first); abort(); } return false;