diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2021-02-07 15:33:24 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-08 18:08:55 +0100 |
commit | 09a43969ba957b3484cc9387344fea145f46aa46 (patch) | |
tree | 0e2077e1d8af02b06e39cb4ca6cbfcba37052c73 /Kernel/Interrupts | |
parent | 1f8a633cc762fc3ca8544ee75ce25a7a8860d4be (diff) | |
download | serenity-09a43969ba957b3484cc9387344fea145f46aa46.zip |
Everywhere: Replace dbgln<flag>(...) with dbgln_if(flag, ...)
Replacement made by `find Kernel Userland -name '*.h' -o -name '*.cpp' | sed -i -Ee 's/dbgln\b<(\w+)>\(/dbgln_if(\1, /g'`
Diffstat (limited to 'Kernel/Interrupts')
-rw-r--r-- | Kernel/Interrupts/IOAPIC.cpp | 4 | ||||
-rw-r--r-- | Kernel/Interrupts/IRQHandler.cpp | 6 | ||||
-rw-r--r-- | Kernel/Interrupts/SharedIRQHandler.cpp | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/Kernel/Interrupts/IOAPIC.cpp b/Kernel/Interrupts/IOAPIC.cpp index 7f20296e8e..796f2cbd2a 100644 --- a/Kernel/Interrupts/IOAPIC.cpp +++ b/Kernel/Interrupts/IOAPIC.cpp @@ -320,13 +320,13 @@ void IOAPIC::write_register(u32 index, u32 value) const m_regs->select = index; m_regs->window = value; - dbgln<IOAPIC_DEBUG>("IOAPIC Writing, Value {:#x} @ offset {:#x}", (u32)m_regs->window, (u32)m_regs->select); + dbgln_if(IOAPIC_DEBUG, "IOAPIC Writing, Value {:#x} @ offset {:#x}", (u32)m_regs->window, (u32)m_regs->select); } u32 IOAPIC::read_register(u32 index) const { InterruptDisabler disabler; m_regs->select = index; - dbgln<IOAPIC_DEBUG>("IOAPIC Reading, Value {:#x} @ offset {:#x}", (u32)m_regs->window, (u32)m_regs->select); + dbgln_if(IOAPIC_DEBUG, "IOAPIC Reading, Value {:#x} @ offset {:#x}", (u32)m_regs->window, (u32)m_regs->select); return m_regs->window; } diff --git a/Kernel/Interrupts/IRQHandler.cpp b/Kernel/Interrupts/IRQHandler.cpp index c8c74c7e48..c9f921157f 100644 --- a/Kernel/Interrupts/IRQHandler.cpp +++ b/Kernel/Interrupts/IRQHandler.cpp @@ -44,7 +44,7 @@ IRQHandler::~IRQHandler() bool IRQHandler::eoi() { - dbgln<IRQ_DEBUG>("EOI IRQ {}", interrupt_number()); + dbgln_if(IRQ_DEBUG, "EOI IRQ {}", interrupt_number()); if (!m_shared_with_others) { ASSERT(!m_responsible_irq_controller.is_null()); m_responsible_irq_controller->eoi(*this); @@ -55,7 +55,7 @@ bool IRQHandler::eoi() void IRQHandler::enable_irq() { - dbgln<IRQ_DEBUG>("Enable IRQ {}", interrupt_number()); + dbgln_if(IRQ_DEBUG, "Enable IRQ {}", interrupt_number()); m_enabled = true; if (!m_shared_with_others) m_responsible_irq_controller->enable(*this); @@ -63,7 +63,7 @@ void IRQHandler::enable_irq() void IRQHandler::disable_irq() { - dbgln<IRQ_DEBUG>("Disable IRQ {}", interrupt_number()); + dbgln_if(IRQ_DEBUG, "Disable IRQ {}", interrupt_number()); m_enabled = false; if (!m_shared_with_others) m_responsible_irq_controller->disable(*this); diff --git a/Kernel/Interrupts/SharedIRQHandler.cpp b/Kernel/Interrupts/SharedIRQHandler.cpp index 6cf19ddbbe..0803489a26 100644 --- a/Kernel/Interrupts/SharedIRQHandler.cpp +++ b/Kernel/Interrupts/SharedIRQHandler.cpp @@ -59,7 +59,7 @@ void SharedIRQHandler::unregister_handler(GenericInterruptHandler& handler) bool SharedIRQHandler::eoi() { - dbgln<INTERRUPT_DEBUG>("EOI IRQ {}", interrupt_number()); + dbgln_if(INTERRUPT_DEBUG, "EOI IRQ {}", interrupt_number()); m_responsible_irq_controller->eoi(*this); return true; } @@ -93,11 +93,11 @@ void SharedIRQHandler::handle_interrupt(const RegisterState& regs) int i = 0; for (auto* handler : m_handlers) { - dbgln<INTERRUPT_DEBUG>("Going for Interrupt Handling @ {}, Shared Interrupt {}", i, interrupt_number()); + dbgln_if(INTERRUPT_DEBUG, "Going for Interrupt Handling @ {}, Shared Interrupt {}", i, interrupt_number()); ASSERT(handler != nullptr); handler->increment_invoking_counter(); handler->handle_interrupt(regs); - dbgln<INTERRUPT_DEBUG>("Going for Interrupt Handling @ {}, Shared Interrupt {} - End", i, interrupt_number()); + dbgln_if(INTERRUPT_DEBUG, "Going for Interrupt Handling @ {}, Shared Interrupt {} - End", i, interrupt_number()); i++; } } |