[boot] Add scanline size to fb boot message

Scanline size can differ from horizontal resolution in some
framebuffers. This isn't currently handled, but at least log it so
it's visible if this lack of handling is a potential error.
This commit is contained in:
Justin C. Miller
2021-01-17 10:28:54 -08:00
parent b9af081a44
commit 45b52633bb

View File

@@ -70,8 +70,8 @@ console::console(uefi::boot_services *bs, uefi::protos::simple_text_output *out)
type = L"unknown"; type = L"unknown";
} }
printf(L"Found framebuffer: %dx%d type %s @0x%x\r\n", printf(L"Found framebuffer: %dx%d[%d] type %s @0x%x\r\n",
m_fb.horizontal, m_fb.vertical, type, m_fb.phys_addr); m_fb.horizontal, m_fb.vertical, m_fb.scanline, type, m_fb.phys_addr);
} else { } else {
printf(L"No framebuffer found.\r\n"); printf(L"No framebuffer found.\r\n");
} }