mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
Everywhere: Prefer using {:#x} over 0x{:x}
We have a dedicated format specifier which adds the "0x" prefix, so let's use that instead of adding it manually.
This commit is contained in:
parent
31f30e732a
commit
36e36507d5
12 changed files with 23 additions and 23 deletions
|
@ -51,7 +51,7 @@ static void print_syscall(PtraceRegisters& regs, size_t depth)
|
|||
const char* begin_color = g_should_output_color ? "\033[34;1m" : "";
|
||||
const char* end_color = g_should_output_color ? "\033[0m" : "";
|
||||
#if ARCH(I386)
|
||||
outln("=> {}SC_{}(0x{:x}, 0x{:x}, 0x{:x}){}",
|
||||
outln("=> {}SC_{}({:#x}, {:#x}, {:#x}){}",
|
||||
begin_color,
|
||||
Syscall::to_string((Syscall::Function)regs.eax),
|
||||
regs.edx,
|
||||
|
@ -59,7 +59,7 @@ static void print_syscall(PtraceRegisters& regs, size_t depth)
|
|||
regs.ebx,
|
||||
end_color);
|
||||
#else
|
||||
outln("=> {}SC_{}(0x{:x}, 0x{:x}, 0x{:x}){}",
|
||||
outln("=> {}SC_{}({:#x}, {:#x}, {:#x}){}",
|
||||
begin_color,
|
||||
Syscall::to_string((Syscall::Function)regs.rax),
|
||||
regs.rdx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue