tianocore / edk2

EDK II
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
Other
4.41k stars 2.4k forks source link

DynamicTablesPkg: Add HexDump for CM Object parser #5826

Closed nvidia-dmach closed 3 weeks ago

nvidia-dmach commented 3 weeks ago

Description

Add helper function HexDump for printing hex dump of CM Object fields.

Also merge multiple flavors of PrintCharX into one function PrintChars by using the field length.

How This Was Tested

Called ParseCmObjDesc() and ensured that "AcpiTableSignature", "OemTableId", "OemId[6]" fields were printed correctly. And HexDump was tested by dumping the 12 bytes of TPM2 "StartMethodParameters".

Integration Instructions

N/A

nvidia-dmach commented 3 weeks ago

Closing this PR. I have opened another PR with more patches. Please review https://github.com/tianocore/edk2/pull/5827 instead. Thanks.