mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +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
|
@ -72,7 +72,7 @@ ErrorOr<void> Hub::enumerate_and_power_on_hub()
|
|||
if constexpr (USB_DEBUG) {
|
||||
dbgln("USB Hub Descriptor for {:04x}:{:04x}", m_vendor_id, m_product_id);
|
||||
dbgln("Number of Downstream Ports: {}", descriptor.number_of_downstream_ports);
|
||||
dbgln("Hub Characteristics: 0x{:04x}", static_cast<u16>(descriptor.hub_characteristics));
|
||||
dbgln("Hub Characteristics: {:#04x}", static_cast<u16>(descriptor.hub_characteristics));
|
||||
dbgln("Power On to Power Good Time: {} ms ({} * 2ms)", descriptor.power_on_to_power_good_time * 2, descriptor.power_on_to_power_good_time);
|
||||
dbgln("Hub Controller Current: {} mA", descriptor.hub_controller_current);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue