Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 Explicitly cast the result of ptoa() to u...



details:   https://anonhg.NetBSD.org/src/rev/1353541201bc
branches:  trunk
changeset: 771697:1353541201bc
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Nov 29 11:12:26 2011 +0000

description:
Explicitly cast the result of ptoa() to unsigned long for printf,
to fix build failure on xen.

diffstat:

 sys/arch/i386/i386/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r de042b2fcbf9 -r 1353541201bc sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Tue Nov 29 10:05:28 2011 +0000
+++ b/sys/arch/i386/i386/machdep.c      Tue Nov 29 11:12:26 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.713 2011/11/18 22:18:08 jmcneill Exp $   */
+/*     $NetBSD: machdep.c,v 1.714 2011/11/29 11:12:26 martin Exp $     */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.713 2011/11/18 22:18:08 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.714 2011/11/29 11:12:26 martin Exp $");
 
 #include "opt_beep.h"
 #include "opt_compat_ibcs2.h"
@@ -1622,7 +1622,7 @@
                       "have %lu bytes, want %lu bytes\n"
                       "running in degraded mode\n"
                       "press a key to confirm\n\n",
-                      ptoa(physmem), 2*1024*1024UL);
+                      (unsigned long)ptoa(physmem), 2*1024*1024UL);
                cngetc();
        }
 



Home | Main Index | Thread Index | Old Index