summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs_map.c
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1999-02-05 06:18:54 +0000
committerjdp <jdp@FreeBSD.org>1999-02-05 06:18:54 +0000
commitde45986f5a254441f16ebb32ab62ae1cbee8fd49 (patch)
tree16904db2fd4a52eb8c886f6fea23ffe55c00b697 /sys/fs/procfs/procfs_map.c
parentda68cbb5d8e2fd3854dbf8bc079658c8ea60ac7a (diff)
downloadFreeBSD-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/fs/procfs/procfs_map.c')
-rw-r--r--sys/fs/procfs/procfs_map.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/procfs/procfs_map.c b/sys/fs/procfs/procfs_map.c
index c6b8966..c27d955 100644
--- a/sys/fs/procfs/procfs_map.c
+++ b/sys/fs/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":"-",
OpenPOWER on IntegriCloud