Browse Source

timer: fix abortstring on 64 bit platforms.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell 12 years ago
parent
commit
8f6c40bce7
1 changed files with 4 additions and 2 deletions
  1. 4 2
      ccan/timer/timer.c

+ 4 - 2
ccan/timer/timer.c

@@ -306,7 +306,8 @@ static bool timer_list_check(const struct list_head *l,
 			if (abortstr) {
 			if (abortstr) {
 				fprintf(stderr,
 				fprintf(stderr,
 					"%s: timer %p %llu not %llu-%llu\n",
 					"%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();
 				abort();
 			}
 			}
 			return false;
 			return false;
@@ -315,7 +316,8 @@ static bool timer_list_check(const struct list_head *l,
 			if (abortstr) {
 			if (abortstr) {
 				fprintf(stderr,
 				fprintf(stderr,
 					"%s: timer %p %llu < minimum %llu\n",
 					"%s: timer %p %llu < minimum %llu\n",
-					abortstr, t, t->time, first);
+					abortstr, t, (long long)t->time,
+					(long long)first);
 				abort();
 				abort();
 			}
 			}
 			return false;
 			return false;