diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 265cac0cd28c..7b210cf963de 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -79,6 +79,7 @@ #include #include #include +#include #include #include @@ -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");