Skip to content

Commit

Permalink
MdeModulePkg/ResetSystemRuntimeDxe: Print Reset Data
Browse files Browse the repository at this point in the history
ResetSystem runtime call allows for sending reset data that
starts with a NULL terminated string. Add support to print
that string on console.

Signed-off-by: Ashish Singhal <[email protected]>
Reviewed-by: Zhichao Gao <[email protected]>
  • Loading branch information
ashishsingha authored and mergify[bot] committed Jan 24, 2024
1 parent 7f72c28 commit 1063665
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,14 @@ RuntimeServiceResetSystem (
mResetNotifyDepth
));

if ((ResetData != NULL) && (DataSize != 0)) {
DEBUG ((
DEBUG_INFO,
"DXE ResetSystem2: ResetData: %s\n",
ResetData
));
}

if (mResetNotifyDepth <= MAX_RESET_NOTIFY_DEPTH) {
if (!EfiAtRuntime ()) {
//
Expand Down

0 comments on commit 1063665

Please sign in to comment.