1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:37:45 +00:00

Everywhere: Replace a bundle of dbg with dbgln.

These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.Everything:

The modifications in this commit were automatically made using the
following command:

    find . -name '*.cpp' -exec sed -i -E 's/dbg\(\) << ("[^"{]*");/dbgln\(\1\);/' {} \;
This commit is contained in:
asynts 2021-01-09 18:51:44 +01:00 committed by Andreas Kling
parent 40b8e21115
commit 938e5c7719
95 changed files with 331 additions and 331 deletions

View file

@ -37,7 +37,7 @@ void IOAccess::initialize()
if (!Access::is_initialized()) {
new IOAccess();
#ifdef PCI_DEBUG
dbg() << "PCI: IO access initialised.";
dbgln("PCI: IO access initialised.");
#endif
}
}
@ -102,7 +102,7 @@ void IOAccess::write32_field(Address address, u32 field, u32 value)
void IOAccess::enumerate_hardware(Function<void(Address, ID)> callback)
{
#ifdef PCI_DEBUG
dbg() << "PCI: IO enumerating hardware";
dbgln("PCI: IO enumerating hardware");
#endif
// Single PCI host controller.
if ((read8_field(Address(), PCI_HEADER_TYPE) & 0x80) == 0) {

View file

@ -85,7 +85,7 @@ void MMIOAccess::initialize(PhysicalAddress mcfg)
if (!Access::is_initialized()) {
new MMIOAccess(mcfg);
#ifdef PCI_DEBUG
dbg() << "PCI: MMIO access initialised.";
dbgln("PCI: MMIO access initialised.");
#endif
}
}
@ -97,7 +97,7 @@ MMIOAccess::MMIOAccess(PhysicalAddress p_mcfg)
auto checkup_region = MM.allocate_kernel_region(p_mcfg.page_base(), (PAGE_SIZE * 2), "PCI MCFG Checkup", Region::Access::Read | Region::Access::Write);
#ifdef PCI_DEBUG
dbg() << "PCI: Checking MCFG Table length to choose the correct mapping size";
dbgln("PCI: Checking MCFG Table length to choose the correct mapping size");
#endif
auto* sdt = (ACPI::Structures::SDTHeader*)checkup_region->vaddr().offset(p_mcfg.offset_in_page()).as_ptr();