mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Everywhere: Prefix hexadecimal numbers with 0x
Depending on the values it might be difficult to figure out whether a value is decimal or hexadecimal. So let's make this more obvious. Also this allows copying and pasting those numbers into GNOME calculator and probably also other apps which auto-detect the base.
This commit is contained in:
parent
7bfd319652
commit
31f30e732a
15 changed files with 67 additions and 86 deletions
|
@ -44,9 +44,9 @@ int main(int argc, char** argv)
|
|||
outln("{}:", pid);
|
||||
|
||||
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");
|
||||
} else {
|
||||
outln("Address Size Access Name");
|
||||
outln("Address Size Access Name");
|
||||
}
|
||||
|
||||
auto file_contents = file->read_all();
|
||||
|
@ -74,11 +74,7 @@ int main(int argc, char** argv)
|
|||
(map.get("shared").to_bool() ? "s" : "-"),
|
||||
(map.get("syscall").to_bool() ? "c" : "-"));
|
||||
|
||||
#if ARCH(I386)
|
||||
out("{:08x} ", address);
|
||||
#else
|
||||
out("{:16x} ", address);
|
||||
#endif
|
||||
out("{:p} ", address);
|
||||
out("{:>10} ", size);
|
||||
if (extended) {
|
||||
auto resident = map.get("amount_resident").to_string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue