mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-09 04:32:51 +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
|
@ -408,7 +408,7 @@ UNMAP_AFTER_INIT void IDEChannel::detect_disks()
|
|||
if (identify_block.commands_and_feature_sets_supported[1] & (1 << 10))
|
||||
max_addressable_block = identify_block.user_addressable_logical_sectors_count;
|
||||
|
||||
dbgln("IDEChannel: {} {} {} device found: Name={}, Capacity={}, Capabilities=0x{:04x}", channel_type_string(), channel_string(i), interface_type == PATADiskDevice::InterfaceType::ATA ? "ATA" : "ATAPI", ((char*)bbuf.data() + 54), max_addressable_block * 512, capabilities);
|
||||
dbgln("IDEChannel: {} {} {} device found: Name={}, Capacity={}, Capabilities={:#04x}", channel_type_string(), channel_string(i), interface_type == PATADiskDevice::InterfaceType::ATA ? "ATA" : "ATAPI", ((char*)bbuf.data() + 54), max_addressable_block * 512, capabilities);
|
||||
if (i == 0) {
|
||||
m_master = PATADiskDevice::create(m_parent_controller, *this, PATADiskDevice::DriveType::Master, interface_type, capabilities, max_addressable_block);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue