summaryrefslogtreecommitdiff
path: root/Kernel/Interrupts/InterruptManagement.cpp
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2020-03-01 21:45:39 +0200
committerAndreas Kling <kling@serenityos.org>2020-03-02 22:23:39 +0100
commit0fc60e41dd06f2c47f1ba416e6eb1c08ee9024c4 (patch)
tree438f00be5f3af7ac6aa19cea647505f6527c7e9b /Kernel/Interrupts/InterruptManagement.cpp
parent19aa53e1f96745b1f3a90c94f8d24c92e68d4372 (diff)
downloadserenity-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/InterruptManagement.cpp')
-rw-r--r--Kernel/Interrupts/InterruptManagement.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Interrupts/InterruptManagement.cpp b/Kernel/Interrupts/InterruptManagement.cpp
index d96137cbd5..b6217e5638 100644
--- a/Kernel/Interrupts/InterruptManagement.cpp
+++ b/Kernel/Interrupts/InterruptManagement.cpp
@@ -109,7 +109,7 @@ InterruptManagement::InterruptManagement()
void InterruptManagement::switch_to_pic_mode()
{
- kprintf("Interrupts: Switch to Legacy PIC mode\n");
+ klog() << "Interrupts: Switch to Legacy PIC mode";
SpuriousInterruptHandler::initialize(7);
SpuriousInterruptHandler::initialize(15);
for (auto& irq_controller : m_interrupt_controllers) {
@@ -125,10 +125,10 @@ void InterruptManagement::switch_to_pic_mode()
void InterruptManagement::switch_to_ioapic_mode()
{
- kprintf("Interrupts: Switch to IOAPIC mode\n");
+ klog() << "Interrupts: Switch to IOAPIC mode";
if (m_interrupt_controllers.size() == 1) {
if (get_interrupt_controller(0).type() == IRQControllerType::i8259) {
- kprintf("Interrupts: NO IOAPIC detected, Reverting to PIC mode.\n");
+ klog() << "Interrupts: NO IOAPIC detected, Reverting to PIC mode.";
return;
}
}