From a1b98c8f845c165572937149a46e12ca36960617 Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Tue, 30 Jan 2024 23:44:21 -0500 Subject: StandaloneMmPkg/Core: Output status in MMI handler assertion Currently, if a MMI handler returns an unexpected failure status code, ASSERT (FALSE) is used. It is more useful to use ASSERT_EFI_ERROR() which also outputs the status code value. Signed-off-by: Michael Kubacki Reviewed-by: Laszlo Ersek Reviewed-by: Ray Ni --- StandaloneMmPkg/Core/Mmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'StandaloneMmPkg') diff --git a/StandaloneMmPkg/Core/Mmi.c b/StandaloneMmPkg/Core/Mmi.c index 8252355..0de6fd1 100644 --- a/StandaloneMmPkg/Core/Mmi.c +++ b/StandaloneMmPkg/Core/Mmi.c @@ -208,7 +208,7 @@ MmiManage ( // // Unexpected status code returned. // - ASSERT (FALSE); + ASSERT_EFI_ERROR (Status); break; } } -- cgit v1.1