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 unneeded casts to (uintptr_t). This is ...
details: https://anonhg.NetBSD.org/src/rev/8e22f5933ca2
branches: trunk
changeset: 357180:8e22f5933ca2
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Mon Oct 30 03:25:14 2017 +0000
description:
Remove unneeded casts to (uintptr_t). This is already taken care of in
the xxxHIST_LOG() macros.
No need to pull-up to -8 - the extra cast really won't hurt anything.
diffstat:
sys/uvm/pmap/pmap.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r 582e3118be47 -r 8e22f5933ca2 sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c Mon Oct 30 03:02:35 2017 +0000
+++ b/sys/uvm/pmap/pmap.c Mon Oct 30 03:25:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.39 2017/10/30 01:19:46 pgoyette Exp $ */
+/* $NetBSD: pmap.c,v 1.40 2017/10/30 03:25:14 pgoyette 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.39 2017/10/30 01:19:46 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.40 2017/10/30 03:25:14 pgoyette Exp $");
/*
* Manages physical address maps.
@@ -885,7 +885,7 @@
UVMHIST_FUNC(__func__); UVMHIST_CALLED(pmaphist);
UVMHIST_LOG(pmaphist, "(pmap=%#jx kernel=%c va=%#jx..%#jx)",
- (uintmax_t)(uintptr_t)pmap, (is_kernel_pmap_p ? 1 : 0), sva, eva);
+ (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,8 +1029,7 @@
UVMHIST_FUNC(__func__); UVMHIST_CALLED(pmaphist);
UVMHIST_LOG(pmaphist, "(pmap=%#jx kernel=%jx va=%#jx..%#jx)",
- (uintmax_t)(uintptr_t)pmap, (pmap == pmap_kernel() ? 1 : 0),
- sva, eva);
+ (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