From 0682a351481dbe5c5a6a36f1b9f6d68e17c2eacc Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 29 Jan 2021 10:52:55 +0100 Subject: [PATCH] SystemMonitor: Show VM region addresses as zero-padded hex ({:p}) 0x1000000 and 0x10000000 looked way too similar without a leading zero. --- Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp b/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp index bb88ef0e65..90f0f79602 100644 --- a/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp +++ b/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp @@ -72,7 +72,7 @@ ProcessMemoryMapWidget::ProcessMemoryMapWidget() Vector pid_vm_fields; pid_vm_fields.empend( "Address", Gfx::TextAlignment::CenterLeft, - [](auto& object) { return String::formatted("{:#x}", object.get("address").to_u32()); }, + [](auto& object) { return String::formatted("{:p}", object.get("address").to_u32()); }, [](auto& object) { return object.get("address").to_u32(); }); pid_vm_fields.empend("size", "Size", Gfx::TextAlignment::CenterRight); pid_vm_fields.empend("amount_resident", "Resident", Gfx::TextAlignment::CenterRight);