Skip to content

Commit

Permalink
StandaloneMmPkg/Core: Output status in MMI handler assertion
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Reviewed-by: Ray Ni <[email protected]>
  • Loading branch information
makubacki authored and mergify[bot] committed Feb 3, 2024
1 parent 927ea13 commit a1b98c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StandaloneMmPkg/Core/Mmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ MmiManage (
//
// Unexpected status code returned.
//
ASSERT (FALSE);
ASSERT_EFI_ERROR (Status);
break;
}
}
Expand Down

0 comments on commit a1b98c8

Please sign in to comment.