summaryrefslogtreecommitdiff
path: root/Kernel/Devices/BXVGADevice.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/Devices/BXVGADevice.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/Devices/BXVGADevice.cpp')
-rw-r--r--Kernel/Devices/BXVGADevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/BXVGADevice.cpp b/Kernel/Devices/BXVGADevice.cpp
index 807456b21e..5ace534de3 100644
--- a/Kernel/Devices/BXVGADevice.cpp
+++ b/Kernel/Devices/BXVGADevice.cpp
@@ -160,7 +160,7 @@ u32 BXVGADevice::find_framebuffer_address()
PCI::enumerate_all([&framebuffer_address](const PCI::Address& address, PCI::ID id) {
if (id == bochs_vga_id || id == virtualbox_vga_id) {
framebuffer_address = PCI::get_BAR0(address) & 0xfffffff0;
- kprintf("BXVGA: framebuffer @ P%x\n", framebuffer_address);
+ klog() << "BXVGA: framebuffer @ P " << String::format("%p", framebuffer_address);
}
});
return framebuffer_address;