From c5285973bcfd45908c62487cf2e318aa0328af3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20H=C3=A4user?= <8659494+mhaeuser@users.noreply.github.com> Date: Mon, 5 Apr 2021 18:22:46 +0200 Subject: [PATCH] OcAppleEventLib: Log resolution determination --- Library/OcAppleEventLib/PointerHandler.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Library/OcAppleEventLib/PointerHandler.c b/Library/OcAppleEventLib/PointerHandler.c index 9875119007e..202e4d9bd58 100644 --- a/Library/OcAppleEventLib/PointerHandler.c +++ b/Library/OcAppleEventLib/PointerHandler.c @@ -496,6 +496,12 @@ InternalGetScreenResolution ( mScreenResolutionSet = TRUE; } + DEBUG (( + DEBUG_INFO, + "OCAE: Failed to handle GOP, discovering UGA - %r\n", + Status + )); + Status = EFI_SUCCESS; } else if (!EFI_ERROR (Status)) { Info = GraphicsOutput->Mode->Info; @@ -510,8 +516,23 @@ InternalGetScreenResolution ( } else { Status = EFI_NOT_READY; } + } else { + DEBUG (( + DEBUG_INFO, + "OCAE: Failed to handle GOP - %r\n", + Status + )); } + DEBUG (( + DEBUG_INFO, + "OCAE: Set screen resolution to %dx%d [%d] - %r\n", + mResolution.Horizontal, + mResolution.Vertical, + mScreenResolutionSet, + Status + )); + return Status; }