From 29c5dcd2fa19103a2c780969a62ad9fe2c30ceb3 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 22 Jul 2021 00:04:19 +0200 Subject: [PATCH] Utilities: Make sure columns are properly aligned for pmap on x86_64 --- Userland/Utilities/pmap.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Userland/Utilities/pmap.cpp b/Userland/Utilities/pmap.cpp index ab8f54ce5d..7ad499424f 100644 --- a/Userland/Utilities/pmap.cpp +++ b/Userland/Utilities/pmap.cpp @@ -43,10 +43,16 @@ int main(int argc, char** argv) outln("{}:", pid); +#if ARCH(I386) + auto padding = ""; +#else + auto padding = " "; +#endif + if (extended) { - outln("Address Size Resident Dirty Access VMObject Type Purgeable CoW Pages Name"); + outln("Address{} Size Resident Dirty Access VMObject Type Purgeable CoW Pages Name", padding); } else { - outln("Address Size Access Name"); + outln("Address{} Size Access Name", padding); } auto file_contents = file->read_all();