mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:07:45 +00:00
Kernel: Simplify a bunch of dbg() and klog() calls
LogStream can handle VirtualAddress and PhysicalAddress directly.
This commit is contained in:
parent
b866582d98
commit
c6693f9b3a
11 changed files with 32 additions and 33 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue