From c6693f9b3a16ae964696479dd8fdfba90ea95a97 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 6 Mar 2020 15:00:44 +0100 Subject: Kernel: Simplify a bunch of dbg() and klog() calls LogStream can handle VirtualAddress and PhysicalAddress directly. --- Kernel/Devices/BXVGADevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Devices/BXVGADevice.cpp') diff --git a/Kernel/Devices/BXVGADevice.cpp b/Kernel/Devices/BXVGADevice.cpp index 5ace534de3..508f850412 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; - klog() << "BXVGA: framebuffer @ P " << String::format("%p", framebuffer_address); + klog() << "BXVGA: framebuffer @ " << PhysicalAddress(framebuffer_address); } }); return framebuffer_address; -- cgit v1.2.3