Module Name: src
Committed By: uebayasi
Date: Mon Dec 14 13:00:07 UTC 2009
Modified Files:
src/sys/miscfs/procfs: procfs_map.c
Log Message:
gimpy invented PRIxVADDR format specifier.
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/miscfs/procfs/procfs_map.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/miscfs/procfs/procfs_map.c
diff -u src/sys/miscfs/procfs/procfs_map.c:1.37 src/sys/miscfs/procfs/procfs_map.c:1.38
--- src/sys/miscfs/procfs/procfs_map.c:1.37 Sun Jan 11 02:45:53 2009
+++ src/sys/miscfs/procfs/procfs_map.c Mon Dec 14 13:00:07 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_map.c,v 1.37 2009/01/11 02:45:53 christos Exp $ */
+/* $NetBSD: procfs_map.c,v 1.38 2009/12/14 13:00:07 uebayasi Exp $ */
/*
* Copyright (c) 1993
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_map.c,v 1.37 2009/01/11 02:45:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_map.c,v 1.38 2009/12/14 13:00:07 uebayasi Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -184,7 +184,7 @@
(unsigned long long)minor(dev), fileid, path);
} else {
pos += snprintf(buffer + pos, bufsize - pos,
- "0x%lx 0x%lx %c%c%c %c%c%c %s %s %d %d %d\n",
+ "0x%"PRIxVADDR"x 0x%"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' : '-',