Module Name:    src
Committed By:   jym
Date:           Wed Sep 15 21:37:36 UTC 2010

Modified Files:
        src/sys/miscfs/procfs: procfs_map.c

Log Message:
Use PRIxVADDR to print vaddr_t elements. Wrap lines.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 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.38 src/sys/miscfs/procfs/procfs_map.c:1.39
--- src/sys/miscfs/procfs/procfs_map.c:1.38	Mon Dec 14 13:00:07 2009
+++ src/sys/miscfs/procfs/procfs_map.c	Wed Sep 15 21:37:35 2010
@@ -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' : '-',

Reply via email to