Use PRIxVADDR to print vaddr_t elements. Wrap lines.
This commit is contained in:
parent
0d8d67869e
commit
b8a7885350
@ -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 @@ again:
|
||||
}
|
||||
}
|
||||
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 @@ again:
|
||||
(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' : '-',
|
||||
|
Loading…
Reference in New Issue
Block a user