MdeModulePkg/ResetSystemRuntimeDxe: Print Reset Data

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 <ashishsingha@nvidia.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
This commit is contained in:
Ashish Singhal 2023-12-06 16:52:47 -07:00 committed by mergify[bot]
parent 7f72c2829f
commit 1063665fa5
1 changed files with 8 additions and 0 deletions

View File

@ -252,6 +252,14 @@ RuntimeServiceResetSystem (
mResetNotifyDepth mResetNotifyDepth
)); ));
if ((ResetData != NULL) && (DataSize != 0)) {
DEBUG ((
DEBUG_INFO,
"DXE ResetSystem2: ResetData: %s\n",
ResetData
));
}
if (mResetNotifyDepth <= MAX_RESET_NOTIFY_DEPTH) { if (mResetNotifyDepth <= MAX_RESET_NOTIFY_DEPTH) {
if (!EfiAtRuntime ()) { if (!EfiAtRuntime ()) {
// //