summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2020-02-24 17:03:50 +0200
committerAndreas Kling <kling@serenityos.org>2020-02-27 13:05:12 +0100
commit946d9b8c24332137d20865abd00ff09547044ad9 (patch)
tree73c03142fc0f4aa23b4913b500b32e04c4147d9a /Kernel
parent5cd58adfa9da7ebc419149e5407f5d021a3622b0 (diff)
downloadserenity-946d9b8c24332137d20865abd00ff09547044ad9.zip
IOAPIC: Use dbg() instead of dbgprintf()
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Interrupts/IOAPIC.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Interrupts/IOAPIC.cpp b/Kernel/Interrupts/IOAPIC.cpp
index d3d373bcee..a3a312d956 100644
--- a/Kernel/Interrupts/IOAPIC.cpp
+++ b/Kernel/Interrupts/IOAPIC.cpp
@@ -186,11 +186,11 @@ void IOAPIC::configure_redirection_entry(int index, u8 interrupt_vector, u8 deli
u32 redirection_entry2 = destination << 24;
write_register((index << 1) + IOAPIC_REDIRECTION_ENTRY_OFFSET, redirection_entry1);
#ifdef IOAPIC_DEBUG
- dbgprintf("IOAPIC Value: 0x%x\n", read_register((index << 1) + IOAPIC_REDIRECTION_ENTRY_OFFSET));
+ dbg() << "IOAPIC Value: 0x" << String::format("%x", read_register((index << 1) + IOAPIC_REDIRECTION_ENTRY_OFFSET));
#endif
write_register((index << 1) + IOAPIC_REDIRECTION_ENTRY_OFFSET + 1, redirection_entry2);
#ifdef IOAPIC_DEBUG
- dbgprintf("IOAPIC Value: 0x%x\n", read_register((index << 1) + 0x11));
+ dbg() << "IOAPIC Value: 0x" << String::format("%x", read_register((index << 1) + 0x11));
#endif
}
@@ -293,7 +293,7 @@ void IOAPIC::write_register(u32 index, u32 value) const
regs.select = index;
regs.window = value;
#ifdef IOAPIC_DEBUG
- dbgprintf("IOAPIC Writing, Value 0x%x @ offset 0x%x\n", regs.window, regs.select);
+ dbg() << "IOAPIC Writing, Value 0x" << String::format("%x", regs.window) << " @ offset 0x" << String::format("%x", regs.select);
#endif
}
u32 IOAPIC::read_register(u32 index) const
@@ -303,7 +303,7 @@ u32 IOAPIC::read_register(u32 index) const
auto& regs = *(volatile ioapic_mmio_regs*)region->vaddr().offset(offset_in_page(&m_physical_access_registers)).as_ptr();
regs.select = index;
#ifdef IOAPIC_DEBUG
- dbgprintf("IOAPIC Reading, Value 0x%x @ offset 0x%x\n", regs.window, regs.select);
+ dbg() << "IOAPIC Reading, Value 0x" << String::format("%x", regs.window) << " @ offset 0x" << String::format("%x", regs.select);
#endif
return regs.window;
}