Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/procfs Use PRIxVADDR to print vaddr_t elements. W...
details: https://anonhg.NetBSD.org/src/rev/e988a9296a7c
branches: trunk
changeset: 757708:e988a9296a7c
user: jym <jym%NetBSD.org@localhost>
date: Wed Sep 15 21:37:35 2010 +0000
description:
Use PRIxVADDR to print vaddr_t elements. Wrap lines.
diffstat:
sys/miscfs/procfs/procfs_map.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r 198d8a500d96 -r e988a9296a7c sys/miscfs/procfs/procfs_map.c
--- a/sys/miscfs/procfs/procfs_map.c Wed Sep 15 18:40:27 2010 +0000
+++ b/sys/miscfs/procfs/procfs_map.c Wed Sep 15 21:37:35 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_map.c,v 1.38 2009/12/14 13:00:07 uebayasi Exp $ */
+/* $NetBSD: procfs_map.c,v 1.39 2010/09/15 21:37:35 jym Exp $ */
/*
* Copyright (c) 1993
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_map.c,v 1.38 2009/12/14 13:00:07 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_map.c,v 1.39 2010/09/15 21:37:35 jym Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -171,9 +171,10 @@
}
}
pos += snprintf(buffer + pos, bufsize - pos,
- "%0*lx-%0*lx %c%c%c%c %0*lx %llx:%llx %ld %s\n",
- (int)sizeof(void *) * 2,(unsigned long)entry->start,
- (int)sizeof(void *) * 2,(unsigned long)entry->end,
+ "%#0*"PRIxVADDR"-%#0*"PRIxVADDR" %c%c%c%c "
+ "%0*lx %llx:%llx %ld %s\n",
+ (int)sizeof(void *) * 2,entry->start,
+ (int)sizeof(void *) * 2,entry->end,
(entry->protection & VM_PROT_READ) ? 'r' : '-',
(entry->protection & VM_PROT_WRITE) ? 'w' : '-',
(entry->protection & VM_PROT_EXECUTE) ? 'x' : '-',
@@ -184,7 +185,8 @@
(unsigned long long)minor(dev), fileid, path);
} else {
pos += snprintf(buffer + pos, bufsize - pos,
- "0x%"PRIxVADDR"x 0x%"PRIxVADDR"x %c%c%c %c%c%c %s %s %d %d %d\n",
+ "%#"PRIxVADDR"x %#"PRIxVADDR"x "
+ "%c%c%c %c%c%c %s %s %d %d %d\n",
entry->start, entry->end,
(entry->protection & VM_PROT_READ) ? 'r' : '-',
(entry->protection & VM_PROT_WRITE) ? 'w' : '-',
Home |
Main Index |
Thread Index |
Old Index