Utilities: Make sure columns are properly aligned for pmap on x86_64

This commit is contained in:
Gunnar Beutner 2021-07-22 00:04:19 +02:00 committed by Andreas Kling
parent 11e02f222d
commit 29c5dcd2fa
Notes: sideshowbarker 2024-07-18 08:36:49 +09:00

View file

@ -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();