summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Zhao <jason.zhao@intel.com>2024-08-28 10:10:58 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-03 14:19:55 +0000
commite48acc0fa98e307b1192037062f4623da3eeeb7f (patch)
tree367f30e330c0285b04e3a50347969bc96a215b56
parentaebe9625c915c71c420d8ce6b15923dc01385436 (diff)
downloadedk2-e48acc0fa98e307b1192037062f4623da3eeeb7f.tar.gz
edk2-e48acc0fa98e307b1192037062f4623da3eeeb7f.tar.bz2
edk2-e48acc0fa98e307b1192037062f4623da3eeeb7f.zip
ShellPkg/SmbiosView: Add new Socket Type for SMBIOS Type4
The patch prints new socket type(Type 4, Offset 32h) for SMBIOS Type4 based on SMBIOS v3.8.0. Signed-off-by: Jason Zhao <jason.zhao@intel.com>
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
index a31f823304..2ee2bb44bc 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
@@ -524,6 +524,10 @@ SmbiosPrintStructure (
ShellPrintEx (-1, -1, L"Thread Enabled: %u\n", Struct->Type4->ThreadEnabled);
}
+ if (AE_SMBIOS_VERSION (0x3, 0x8) && (Struct->Hdr->Length > 0x30)) {
+ ShellPrintEx (-1, -1, L"Socket Type: %a\n", LibGetSmbiosString (Struct, Struct->Type4->SocketType));
+ }
+
break;
//