diff options
Diffstat (limited to 'Kernel/VM')
-rw-r--r-- | Kernel/VM/MemoryManager.cpp | 4 | ||||
-rw-r--r-- | Kernel/VM/Range.h | 2 | ||||
-rw-r--r-- | Kernel/VM/Space.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp index fd178a84cd..49a3d2d131 100644 --- a/Kernel/VM/MemoryManager.cpp +++ b/Kernel/VM/MemoryManager.cpp @@ -1121,10 +1121,10 @@ void MemoryManager::unregister_region(Region& region) void MemoryManager::dump_kernel_regions() { dbgln("Kernel regions:"); - dbgln("BEGIN END SIZE ACCESS NAME"); + dbgln("BEGIN END SIZE ACCESS NAME"); ScopedSpinLock lock(s_mm_lock); for (auto& region : m_kernel_regions) { - dbgln("{:08x} -- {:08x} {:08x} {:c}{:c}{:c}{:c}{:c}{:c} {}", + dbgln("{:p} -- {:p} {:p} {:c}{:c}{:c}{:c}{:c}{:c} {}", region.vaddr().get(), region.vaddr().offset(region.size() - 1).get(), region.size(), diff --git a/Kernel/VM/Range.h b/Kernel/VM/Range.h index 2cad9b71d9..e9693a44dd 100644 --- a/Kernel/VM/Range.h +++ b/Kernel/VM/Range.h @@ -63,6 +63,6 @@ template<> struct AK::Formatter<Kernel::Range> : Formatter<FormatString> { void format(FormatBuilder& builder, Kernel::Range value) { - return Formatter<FormatString>::format(builder, "{} - {} (size 0x{:08x})", value.base().as_ptr(), value.base().offset(value.size() - 1).as_ptr(), value.size()); + return Formatter<FormatString>::format(builder, "{} - {} (size {:p})", value.base().as_ptr(), value.base().offset(value.size() - 1).as_ptr(), value.size()); } }; diff --git a/Kernel/VM/Space.cpp b/Kernel/VM/Space.cpp index 25df2a2093..db3f3c8e76 100644 --- a/Kernel/VM/Space.cpp +++ b/Kernel/VM/Space.cpp @@ -316,13 +316,13 @@ KResultOr<Vector<Region*, 2>> Space::try_split_region_around_range(const Region& void Space::dump_regions() { dbgln("Process regions:"); - dbgln("BEGIN END SIZE ACCESS NAME"); + dbgln("BEGIN END SIZE ACCESS NAME"); ScopedSpinLock lock(m_lock); for (auto& sorted_region : m_regions) { auto& region = *sorted_region; - dbgln("{:08x} -- {:08x} {:08x} {:c}{:c}{:c}{:c}{:c}{:c} {}", region.vaddr().get(), region.vaddr().offset(region.size() - 1).get(), region.size(), + dbgln("{:p} -- {:p} {:p} {:c}{:c}{:c}{:c}{:c}{:c} {}", region.vaddr().get(), region.vaddr().offset(region.size() - 1).get(), region.size(), region.is_readable() ? 'R' : ' ', region.is_writable() ? 'W' : ' ', region.is_executable() ? 'X' : ' ', |