diff options
author | Liav A <liavalb@gmail.com> | 2020-03-01 21:45:39 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-02 22:23:39 +0100 |
commit | 0fc60e41dd06f2c47f1ba416e6eb1c08ee9024c4 (patch) | |
tree | 438f00be5f3af7ac6aa19cea647505f6527c7e9b /Kernel/Interrupts/SharedIRQHandler.cpp | |
parent | 19aa53e1f96745b1f3a90c94f8d24c92e68d4372 (diff) | |
download | serenity-0fc60e41dd06f2c47f1ba416e6eb1c08ee9024c4.zip |
Kernel: Use klog() instead of kprintf()
Also, duplicate data in dbg() and klog() calls were removed.
In addition, leakage of virtual address to kernel log is prevented.
This is done by replacing kprintf() calls to dbg() calls with the
leaked data instead.
Also, other kprintf() calls were replaced with klog().
Diffstat (limited to 'Kernel/Interrupts/SharedIRQHandler.cpp')
-rw-r--r-- | Kernel/Interrupts/SharedIRQHandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Interrupts/SharedIRQHandler.cpp b/Kernel/Interrupts/SharedIRQHandler.cpp index f770fee641..1899eb8176 100644 --- a/Kernel/Interrupts/SharedIRQHandler.cpp +++ b/Kernel/Interrupts/SharedIRQHandler.cpp @@ -42,7 +42,7 @@ void SharedIRQHandler::initialize(u8 interrupt_number) void SharedIRQHandler::register_handler(GenericInterruptHandler& handler) { #ifdef INTERRUPT_DEBUG - kprintf("Interrupt Handler registered @ Shared Interrupt Handler %d\n", m_interrupt_number); + klog() << "Interrupt Handler registered @ Shared Interrupt Handler " << m_interrupt_number; #endif m_handlers.set(&handler); enable_interrupt_vector(); @@ -50,7 +50,7 @@ void SharedIRQHandler::register_handler(GenericInterruptHandler& handler) void SharedIRQHandler::unregister_handler(GenericInterruptHandler& handler) { #ifdef INTERRUPT_DEBUG - kprintf("Interrupt Handler unregistered @ Shared Interrupt Handler %d\n", m_interrupt_number); + klog() << "Interrupt Handler unregistered @ Shared Interrupt Handler " << m_interrupt_number; #endif m_handlers.remove(&handler); if (m_handlers.is_empty()) @@ -71,7 +71,7 @@ SharedIRQHandler::SharedIRQHandler(u8 irq) , m_responsible_irq_controller(InterruptManagement::the().get_responsible_irq_controller(irq)) { #ifdef INTERRUPT_DEBUG - kprintf("Shared Interrupt Handler registered @ %d\n", m_interrupt_number); + klog() << "Shared Interrupt Handler registered @ " << m_interrupt_number; #endif disable_interrupt_vector(); } @@ -79,7 +79,7 @@ SharedIRQHandler::SharedIRQHandler(u8 irq) SharedIRQHandler::~SharedIRQHandler() { #ifdef INTERRUPT_DEBUG - kprintf("Shared Interrupt Handler unregistered @ %d\n", interrupt_number()); + klog() << "Shared Interrupt Handler unregistered @ " << interrupt_number(); #endif disable_interrupt_vector(); } |