diff options
author | jdp <jdp@FreeBSD.org> | 1999-02-05 06:18:54 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1999-02-05 06:18:54 +0000 |
commit | de45986f5a254441f16ebb32ab62ae1cbee8fd49 (patch) | |
tree | 16904db2fd4a52eb8c886f6fea23ffe55c00b697 /sys/miscfs | |
parent | da68cbb5d8e2fd3854dbf8bc079658c8ea60ac7a (diff) | |
download | FreeBSD-src-de45986f5a254441f16ebb32ab62ae1cbee8fd49.zip FreeBSD-src-de45986f5a254441f16ebb32ab62ae1cbee8fd49.tar.gz |
Correct a format mismatch on 64-bit architectures. This should
fix the erroneous values in the procfs "map" file on the Alpha.
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/procfs/procfs_map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_map.c b/sys/miscfs/procfs/procfs_map.c index c6b8966..c27d955 100644 --- a/sys/miscfs/procfs/procfs_map.c +++ b/sys/miscfs/procfs/procfs_map.c @@ -36,7 +36,7 @@ * * @(#)procfs_status.c 8.3 (Berkeley) 2/17/94 * - * $Id: procfs_map.c,v 1.18 1998/12/04 22:54:51 archie Exp $ + * $Id: procfs_map.c,v 1.19 1999/01/21 08:29:06 dillon Exp $ */ #include <sys/param.h> @@ -152,8 +152,8 @@ case OBJT_DEVICE: * start, end, resident, private resident, cow, access, type. */ snprintf(mebuffer, sizeof(mebuffer), - "0x%x 0x%x %d %d %p %s%s%s %d %d 0x%x %s %s %s\n", - entry->start, entry->end, + "0x%lx 0x%lx %d %d %p %s%s%s %d %d 0x%x %s %s %s\n", + (u_long)entry->start, (u_long)entry->end, resident, privateresident, obj, (entry->protection & VM_PROT_READ)?"r":"-", (entry->protection & VM_PROT_WRITE)?"w":"-", |