diff options
author | Michael Kubacki <michael.kubacki@microsoft.com> | 2024-01-30 23:44:21 -0500 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-02-03 16:41:41 +0000 |
commit | a1b98c8f845c165572937149a46e12ca36960617 (patch) | |
tree | 7ae1b31ef2d195d91a9300bef82540d9b4a961da | |
parent | 927ea1364d047d54cb67e0f231644f295c032944 (diff) | |
download | edk2-a1b98c8f845c165572937149a46e12ca36960617.tar.gz edk2-a1b98c8f845c165572937149a46e12ca36960617.tar.bz2 edk2-a1b98c8f845c165572937149a46e12ca36960617.zip |
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 <michael.kubacki@microsoft.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
-rw-r--r-- | StandaloneMmPkg/Core/Mmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/StandaloneMmPkg/Core/Mmi.c b/StandaloneMmPkg/Core/Mmi.c index 8252355a48..0de6fd17fc 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;
}
}
|