From 45b52633bb4efd0ff33670b499299d90d4449d50 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Sun, 17 Jan 2021 10:28:54 -0800 Subject: [PATCH] [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. --- src/boot/console.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boot/console.cpp b/src/boot/console.cpp index b679735..02c9181 100644 --- a/src/boot/console.cpp +++ b/src/boot/console.cpp @@ -70,8 +70,8 @@ console::console(uefi::boot_services *bs, uefi::protos::simple_text_output *out) type = L"unknown"; } - printf(L"Found framebuffer: %dx%d type %s @0x%x\r\n", - m_fb.horizontal, m_fb.vertical, type, m_fb.phys_addr); + printf(L"Found framebuffer: %dx%d[%d] type %s @0x%x\r\n", + m_fb.horizontal, m_fb.vertical, m_fb.scanline, type, m_fb.phys_addr); } else { printf(L"No framebuffer found.\r\n"); }