diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-01 21:10:08 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-01 21:25:06 +0200 |
commit | 6cf59b6ae96aeeb8c0da957a07f913c4fa38467f (patch) | |
tree | b3f1691b59c3280993d4a8c2866f821ae15c1875 /Kernel/ACPI/Parser.cpp | |
parent | 4e6f03a860595f9eb2628e12ddbd333e26b0622f (diff) | |
download | serenity-6cf59b6ae96aeeb8c0da957a07f913c4fa38467f.zip |
Everywhere: Turn #if *_DEBUG into dbgln_if/if constexpr
Diffstat (limited to 'Kernel/ACPI/Parser.cpp')
-rw-r--r-- | Kernel/ACPI/Parser.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Kernel/ACPI/Parser.cpp b/Kernel/ACPI/Parser.cpp index 31493b2143..6053971383 100644 --- a/Kernel/ACPI/Parser.cpp +++ b/Kernel/ACPI/Parser.cpp @@ -215,26 +215,20 @@ void Parser::try_acpi_shutdown() size_t Parser::get_table_size(PhysicalAddress table_header) { InterruptDisabler disabler; -#if ACPI_DEBUG - dbgln("ACPI: Checking SDT Length"); -#endif + dbgln_if(ACPI_DEBUG, "ACPI: Checking SDT Length"); return map_typed<Structures::SDTHeader>(table_header)->length; } u8 Parser::get_table_revision(PhysicalAddress table_header) { InterruptDisabler disabler; -#if ACPI_DEBUG - dbgln("ACPI: Checking SDT Revision"); -#endif + dbgln_if(ACPI_DEBUG, "ACPI: Checking SDT Revision"); return map_typed<Structures::SDTHeader>(table_header)->revision; } UNMAP_AFTER_INIT void Parser::initialize_main_system_description_table() { -#if ACPI_DEBUG - dbgln("ACPI: Checking Main SDT Length to choose the correct mapping size"); -#endif + dbgln_if(ACPI_DEBUG, "ACPI: Checking Main SDT Length to choose the correct mapping size"); VERIFY(!m_main_system_description_table.is_null()); auto length = get_table_size(m_main_system_description_table); auto revision = get_table_revision(m_main_system_description_table); |