From 9d583d770b1ab7f50b6a8c19090c97ca3147250f Mon Sep 17 00:00:00 2001 From: Benjamin Doron Date: Mon, 21 Jul 2025 10:47:24 -0400 Subject: [PATCH] StandaloneMmPkg/Core: Print discovered drivers that weren't dispatched This is very useful debugging information. It often helps debug where driver load failures started, which dependency was unmet. Perhaps this was commented out while the standalone MM core was developed. Signed-off-by: Benjamin Doron --- StandaloneMmPkg/Core/StandaloneMmCore.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/StandaloneMmPkg/Core/StandaloneMmCore.c b/StandaloneMmPkg/Core/StandaloneMmCore.c index 2c33390f73..b1a5de2c73 100644 --- a/StandaloneMmPkg/Core/StandaloneMmCore.c +++ b/StandaloneMmPkg/Core/StandaloneMmCore.c @@ -265,7 +265,9 @@ MmReadyToLockHandler ( // Display any drivers that were not dispatched because dependency expression // evaluated to false if this is a debug build // - // MmDisplayDiscoveredNotDispatched (); + DEBUG_CODE_BEGIN (); + MmDisplayDiscoveredNotDispatched (); + DEBUG_CODE_END (); return Status; }