Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Fix compile failure on i386 with DEBUG_MEML...



details:   https://anonhg.NetBSD.org/src/rev/e7df1db90ebc
branches:  trunk
changeset: 821149:e7df1db90ebc
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Thu Jan 26 01:36:35 2017 +0000

description:
Fix compile failure on i386 with DEBUG_MEMLOAD.

diffstat:

 sys/arch/x86/x86/x86_machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r a779a5629070 -r e7df1db90ebc sys/arch/x86/x86/x86_machdep.c
--- a/sys/arch/x86/x86/x86_machdep.c    Thu Jan 26 01:35:51 2017 +0000
+++ b/sys/arch/x86/x86/x86_machdep.c    Thu Jan 26 01:36:35 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_machdep.c,v 1.82 2017/01/24 11:09:14 nonaka Exp $  */
+/*     $NetBSD: x86_machdep.c,v 1.83 2017/01/26 01:36:35 nonaka Exp $  */
 
 /*-
  * Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi,
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.82 2017/01/24 11:09:14 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.83 2017/01/26 01:36:35 nonaka Exp $");
 
 #include "opt_modular.h"
 #include "opt_physmem.h"
@@ -666,8 +666,8 @@
                            ", size=0x%016" PRIx64 ", attr=0x%016" PRIx64
                            ", type=%d(%s)\n",
                            addr, addr + size - 1,
-                           (uint64_t)md->md_virt,
-                           (uint64_t)md->md_virt + size - 1,
+                           (uint64_t)(u_long)md->md_virt,
+                           (uint64_t)(u_long)md->md_virt + size - 1,
                            size, md->md_attr, md->md_type,
                            efi_getmemtype_str(md->md_type));
 #endif



Home | Main Index | Thread Index | Old Index