Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/pmap Consistently use "%#"PRIxVADDR to print VA, not...
details: https://anonhg.NetBSD.org/src/rev/2340b0f52a36
branches: trunk
changeset: 770286:2340b0f52a36
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Tue Oct 11 12:25:56 2011 +0000
description:
Consistently use "%#"PRIxVADDR to print VA, not "0x%#"PRIxVADDR
or "0x%"PRIxVADDR etc. Noticed by Y.Sugahara.
diffstat:
usr.bin/pmap/pmap.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 38c27d494ff5 -r 2340b0f52a36 usr.bin/pmap/pmap.c
--- a/usr.bin/pmap/pmap.c Tue Oct 11 12:08:20 2011 +0000
+++ b/usr.bin/pmap/pmap.c Tue Oct 11 12:25:56 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.46 2011/06/12 06:34:59 mrg Exp $ */
+/* $NetBSD: pmap.c,v 1.47 2011/10/11 12:25:56 tsutsui Exp $ */
/*
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: pmap.c,v 1.46 2011/06/12 06:34:59 mrg Exp $");
+__RCSID("$NetBSD: pmap.c,v 1.47 2011/10/11 12:25:56 tsutsui Exp $");
#endif
#include <string.h>
@@ -161,7 +161,7 @@
if (print_ddb) {
const char *name = mapname(P(vm_map));
- printf("%*s%s %p: [0x%#"PRIxVADDR"->0x%#"PRIxVADDR"]\n", indent(2), "",
+ printf("%*s%s %p: [%#"PRIxVADDR"->%#"PRIxVADDR"]\n", indent(2), "",
recurse < 2 ? "MAP" : "SUBMAP", P(vm_map),
vm_map_min(D(vm_map, vm_map)),
vm_map_max(D(vm_map, vm_map)));
@@ -384,7 +384,7 @@
name = findname(kd, vmspace, vm_map_entry, vp, vfs, uvm_obj);
if (print_map) {
- printf("%*s0x%#"PRIxVADDR" 0x%#"PRIxVADDR" %c%c%c %c%c%c %s %s %d %d %d",
+ printf("%*s%#"PRIxVADDR" %#"PRIxVADDR" %c%c%c %c%c%c %s %s %d %d %d",
indent(2), "",
vme->start, vme->end,
(vme->protection & VM_PROT_READ) ? 'r' : '-',
@@ -427,7 +427,7 @@
}
if (print_ddb) {
- printf("%*s - %p: 0x%"PRIxVADDR"->0x%"PRIxVADDR": obj=%p/0x%" PRIx64 ", amap=%p/%d\n",
+ printf("%*s - %p: %#"PRIxVADDR"->%#"PRIxVADDR": obj=%p/0x%" PRIx64 ", amap=%p/%d\n",
indent(2), "",
P(vm_map_entry), vme->start, vme->end,
vme->object.uvm_obj, vme->offset,
Home |
Main Index |
Thread Index |
Old Index