From: Ian Jackson Subject: [PATCH] timer.c: Cast time value so that it has the correct type Date: Thu, 19 Aug 2010 15:13:45 +0100 Message-ID: <19565.15385.415869.937774@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org We'd prefer to avoid PRI macros in xen itself, so instead we cast the value to long to match the printf format. Without this, the build fails on some compilers. Signed-off-by: Ian Jackson diff -r a05a2d559931 xen/common/timer.c --- a/xen/common/timer.c Thu Aug 19 14:46:32 2010 +0100 +++ b/xen/common/timer.c Thu Aug 19 15:12:36 2010 +0100 @@ -500,7 +500,7 @@ static void dump_timer(struct timer *t, static void dump_timer(struct timer *t, s_time_t now) { printk(" ex=%8ldus timer=%p cb=%p(%p)", - (t->expires - now) / 1000, t, t->function, t->data); + (long)((t->expires - now) / 1000), t, t->function, t->data); print_symbol(" %s\n", (unsigned long)t->function); }