From 8f6c40bce722642ff7e253a675b8ce6cd7e7a091 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 12 Dec 2013 15:26:50 +1030 Subject: [PATCH] timer: fix abortstring on 64 bit platforms. Signed-off-by: Rusty Russell --- ccan/timer/timer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.2