mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
Notes:
sideshowbarker
2024-07-18 08:36:56 +09:00
Author: https://github.com/gunnarbeutner
Commit: 36e36507d5
Pull-request: https://github.com/SerenityOS/serenity/pull/8925
Reviewed-by: https://github.com/awesomekling
12 changed files with 23 additions and 23 deletions
|
@ -92,7 +92,7 @@ AHCI::HBADefinedCapabilities AHCIController::capabilities() const
|
|||
u32 capabilities = hba().control_regs.cap;
|
||||
u32 extended_capabilities = hba().control_regs.cap2;
|
||||
|
||||
dbgln_if(AHCI_DEBUG, "{}: AHCI Controller Capabilities = 0x{:08x}, Extended Capabilities = 0x{:08x}", pci_address(), capabilities, extended_capabilities);
|
||||
dbgln_if(AHCI_DEBUG, "{}: AHCI Controller Capabilities = {:#08x}, Extended Capabilities = {:#08x}", pci_address(), capabilities, extended_capabilities);
|
||||
|
||||
return (AHCI::HBADefinedCapabilities) {
|
||||
(capabilities & 0b11111) + 1,
|
||||
|
@ -144,7 +144,7 @@ void AHCIController::initialize()
|
|||
dbgln("{}: AHCI command list entries count - {}", pci_address(), hba_capabilities().max_command_list_entries_count);
|
||||
|
||||
u32 version = hba().control_regs.version;
|
||||
dbgln_if(AHCI_DEBUG, "{}: AHCI Controller Version = 0x{:08x}", pci_address(), version);
|
||||
dbgln_if(AHCI_DEBUG, "{}: AHCI Controller Version = {:#08x}", pci_address(), version);
|
||||
|
||||
hba().control_regs.ghc = 0x80000000; // Ensure that HBA knows we are AHCI aware.
|
||||
PCI::enable_interrupt_line(pci_address());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue