From: Krzysztof Koch Date: Wed, 8 May 2019 13:13:54 +0000 (-0700) Subject: ShellPkg: Display VENDOR_ID in ASCII when parsing PPTT X-Git-Tag: edk2-stable201905~57 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=7b84de93948925ea5f6ca7b5e9e3ffd1ef86b44b ShellPkg: Display VENDOR_ID in ASCII when parsing PPTT The ID Type Structure (Type 2) inside the Processor Properties Topology Table (PPTT) has a VENDOR_ID field which identifies the node vendor. The approved values are listed in the ACPI ID Registry and they are meant to be interpreted as arrays of ASCII characters. This change to the acpiview parser for PPTT aims to reflect that. Signed-off-by: Krzysztof Koch Reviewed-by: Sami Mujawar Reviewed-by: Zhichao Gao Reviewed-by: Jaben Carsey --- diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c index 345ad337f5..71b6e7ae7c 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c @@ -147,7 +147,7 @@ STATIC CONST ACPI_PARSER IdStructureParser[] = { {L"Length", 1, 1, L"%d", NULL, NULL, NULL, NULL}, {L"Reserved", 2, 2, L"0x%x", NULL, NULL, NULL, NULL}, - {L"VENDOR_ID", 4, 4, L"0x%x", NULL, NULL, NULL, NULL}, + {L"VENDOR_ID", 4, 4, NULL, Dump4Chars, NULL, NULL, NULL}, {L"LEVEL_1_ID", 8, 8, L"0x%x", NULL, NULL, NULL, NULL}, {L"LEVEL_2_ID", 8, 16, L"0x%x", NULL, NULL, NULL, NULL}, {L"MAJOR_REV", 2, 24, L"0x%x", NULL, NULL, NULL, NULL},