summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-11-07 22:49:07 +0000
committermux <mux@FreeBSD.org>2002-11-07 22:49:07 +0000
commitafab015685b69bc70bf82bb0bb10be42fcd05772 (patch)
tree15d71f718770587968667dab1b7575117ec2b2c1 /sys/vm/vm_map.c
parent815055f65a6b5a1b1a4d63fcf25ff85609fc211f (diff)
downloadFreeBSD-src-afab015685b69bc70bf82bb0bb10be42fcd05772.zip
FreeBSD-src-afab015685b69bc70bf82bb0bb10be42fcd05772.tar.gz
Correctly print vm_offset_t types.
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 265cac0..7b210cf 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -79,6 +79,7 @@
#include <sys/vnode.h>
#include <sys/resourcevar.h>
#include <sys/sysent.h>
+#include <sys/stdint.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
@@ -3098,10 +3099,9 @@ DB_SHOW_COMMAND(map, vm_map_print)
db_printf(", wired");
}
if (entry->eflags & MAP_ENTRY_IS_SUB_MAP) {
- /* XXX no %qd in kernel. Truncate entry->offset. */
- db_printf(", share=%p, offset=0x%lx\n",
+ db_printf(", share=%p, offset=0x%jx\n",
(void *)entry->object.sub_map,
- (long)entry->offset);
+ (uintmax_t)entry->offset);
nlines++;
if ((entry->prev == &map->header) ||
(entry->prev->object.sub_map !=
@@ -3113,10 +3113,9 @@ DB_SHOW_COMMAND(map, vm_map_print)
db_indent -= 2;
}
} else {
- /* XXX no %qd in kernel. Truncate entry->offset. */
- db_printf(", object=%p, offset=0x%lx",
+ db_printf(", object=%p, offset=0x%jx",
(void *)entry->object.vm_object,
- (long)entry->offset);
+ (uintmax_t)entry->offset);
if (entry->eflags & MAP_ENTRY_COW)
db_printf(", copy (%s)",
(entry->eflags & MAP_ENTRY_NEEDS_COPY) ? "needed" : "done");
OpenPOWER on IntegriCloud