$NetBSD: patch-ba,v 1.1.1.1 2009/06/12 09:04:57 jnemeth Exp $

--- main/sched.c.orig	2008-09-10 09:42:32.000000000 -0700
+++ main/sched.c
@@ -319,11 +319,11 @@ void ast_sched_dump(const struct sched_c
 	AST_LIST_TRAVERSE(&con->schedq, q, list) {
 		struct timeval delta = ast_tvsub(q->when, tv);
 
-		ast_debug(1, "|%.4d | %-15p | %-15p | %.6ld : %.6ld |\n", 
+		ast_debug(1, "|%.4d | %-15p | %-15p | %.6jd : %.6ld |\n", 
 			q->id,
 			q->callback,
 			q->data,
-			delta.tv_sec,
+			(intmax_t) delta.tv_sec,
 			(long int)delta.tv_usec);
 	}
 	ast_debug(1, "=============================================================\n");
