OcConsoleLib: Add framebuffer base and params logging

This commit is contained in:
vit9696 2021-01-31 19:53:19 +03:00
parent 0d0279cc7f
commit 69ff426319

View File

@ -59,6 +59,17 @@ OcSetConsoleResolutionForProtocol (
(UINT32) GraphicsOutput->Mode->MaxMode
));
DEBUG ((
DEBUG_INFO,
"OCC: Current FB at 0x%LX (0x%X), format %d, res %ux%u scan %u\n",
GraphicsOutput->Mode->FrameBufferBase,
(UINT32) GraphicsOutput->Mode->FrameBufferSize,
GraphicsOutput->Mode->Info != NULL ? GraphicsOutput->Mode->Info->PixelFormat : -1,
GraphicsOutput->Mode->Info != NULL ? GraphicsOutput->Mode->Info->HorizontalResolution : 0,
GraphicsOutput->Mode->Info != NULL ? GraphicsOutput->Mode->Info->VerticalResolution : 0,
GraphicsOutput->Mode->Info != NULL ? GraphicsOutput->Mode->Info->PixelsPerScanLine : 0
));
//
// Find the resolution we need.
//