Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm/pmap Remove a stray '"' (obvious typo) and add a cou...



details:   https://anonhg.NetBSD.org/src/rev/12100f81a722
branches:  trunk
changeset: 827476:12100f81a722
user:      kre <kre%NetBSD.org@localhost>
date:      Mon Oct 30 00:55:42 2017 +0000

description:
Remove a stray '"' (obvious typo) and add a couple of casts that are
probably needed.

diffstat:

 sys/uvm/pmap/pmap.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 76165daacaa3 -r 12100f81a722 sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c       Sun Oct 29 17:57:21 2017 +0000
+++ b/sys/uvm/pmap/pmap.c       Mon Oct 30 00:55:42 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.37 2017/10/28 00:37:13 pgoyette Exp $       */
+/*     $NetBSD: pmap.c,v 1.38 2017/10/30 00:55:42 kre Exp $    */
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.37 2017/10/28 00:37:13 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.38 2017/10/30 00:55:42 kre Exp $");
 
 /*
  *     Manages physical address maps.
@@ -884,8 +884,8 @@
        const bool is_kernel_pmap_p = (pmap == pmap_kernel());
 
        UVMHIST_FUNC(__func__); UVMHIST_CALLED(pmaphist);
-       UVMHIST_LOG(pmaphist, "(pmap=%p kernel=%c va=%#jx"..%#jx)",
-           pmap, (is_kernel_pmap_p ? 1 : 0), sva, eva);
+       UVMHIST_LOG(pmaphist, "(pmap=%p kernel=%c va=%#jx..%#jx)",
+           (uintmax_t)(uintptr_t)pmap, (is_kernel_pmap_p ? 1 : 0), sva, eva);
        UVMHIST_LOG(pmaphist, "ptep=%#jx, flags(npte)=%#jx",
            (uintptr_t)ptep, flags, 0, 0);
 
@@ -1029,7 +1029,8 @@
 
        UVMHIST_FUNC(__func__); UVMHIST_CALLED(pmaphist);
        UVMHIST_LOG(pmaphist, "(pmap=%#jx kernel=%jx va=%#jx..%#jx)",
-           pmap, (pmap == pmap_kernel() ? 1 : 0), sva, eva);
+           (uintmax_t)(uintptr_t)pmap, (pmap == pmap_kernel() ? 1 : 0),
+           sva, eva);
        UVMHIST_LOG(pmaphist, "ptep=%#jx, flags(npte)=%#jx)",
            (uintptr_t)ptep, flags, 0, 0);
 



Home | Main Index | Thread Index | Old Index