From 1063665fa5466ece0814a3e764ee3382656956a1 Mon Sep 17 00:00:00 2001 From: Ashish Singhal Date: Wed, 6 Dec 2023 16:52:47 -0700 Subject: [PATCH] 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 Reviewed-by: Zhichao Gao --- .../Universal/ResetSystemRuntimeDxe/ResetSystem.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c b/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c index 42f1b1d015..72bb1d2be6 100644 --- a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c +++ b/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c @@ -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 ()) { //