mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 22:07:36 +00:00
Everywhere: Prefer {:#x} over 0x{:x} in format strings
The former automatically adapts the prefix to binary and octal output, and is what we already use in the majority of cases. Patch generated by: rg -l '0x\{' | xargs sed -i '' -e 's/0x{:/{:#/' I ran it 4 times (until it stopped changing things) since each invocation only converted one instance per line. No behavior change.
This commit is contained in:
parent
f963bb4f36
commit
24a469f521
18 changed files with 64 additions and 64 deletions
|
@ -114,11 +114,11 @@ ErrorOr<size_t> UHCIRootHub::handle_control_transfer(Transfer& transfer)
|
|||
|
||||
if constexpr (UHCI_DEBUG) {
|
||||
dbgln("UHCIRootHub: Received control transfer.");
|
||||
dbgln("UHCIRootHub: Request Type: 0x{:02x}", request.request_type);
|
||||
dbgln("UHCIRootHub: Request: 0x{:02x}", request.request);
|
||||
dbgln("UHCIRootHub: Value: 0x{:04x}", request.value);
|
||||
dbgln("UHCIRootHub: Index: 0x{:04x}", request.index);
|
||||
dbgln("UHCIRootHub: Length: 0x{:04x}", request.length);
|
||||
dbgln("UHCIRootHub: Request Type: {:#02x}", request.request_type);
|
||||
dbgln("UHCIRootHub: Request: {:#02x}", request.request);
|
||||
dbgln("UHCIRootHub: Value: {:#04x}", request.value);
|
||||
dbgln("UHCIRootHub: Index: {:#04x}", request.index);
|
||||
dbgln("UHCIRootHub: Length: {:#04x}", request.length);
|
||||
}
|
||||
|
||||
size_t length = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue