Kernel: Simplify a bunch of dbg() and klog() calls

LogStream can handle VirtualAddress and PhysicalAddress directly.
This commit is contained in:
Andreas Kling 2020-03-06 15:00:44 +01:00
commit c6693f9b3a
Notes: sideshowbarker 2024-07-19 08:52:09 +09:00
11 changed files with 32 additions and 33 deletions

View file

@ -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;