SecurityPkg/Tcg2Acpi: Revise debug print

This debug print may attempt to print a string without a null
terminator that can lead to a machine check.

The value printed is substituted with a source buffer to still
allow debug.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
This commit is contained in:
Michael Kubacki 2024-07-03 19:32:22 -04:00 committed by mergify[bot]
parent 807ab61359
commit d4dbe5e101

View File

@ -641,7 +641,7 @@ UpdateHID (
CopyMem (DataPtr, Hid, TPM_HID_ACPI_SIZE);
}
DEBUG ((DEBUG_INFO, "TPM2 ACPI _HID is patched to %a\n", DataPtr));
DEBUG ((DEBUG_INFO, "TPM2 ACPI _HID is patched to %a\n", Hid));
return Status;
}