[edk2-devel] [PATCH] ShellPkg/PrintInfo.c:Add two additional DWORD show for smbios 3.3.0 type17
Enze Zhu
zhuenze at byosoft.com.cn
Thu Oct 29 06:13:42 UTC 2020
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2952
In MdePkg/SmBios.h,there are two additional DWORD added
for type 17,but these two DWORD do not show in SmbiosView,
So add them.
Cc: Ray Ni <ray.ni at intel.com>
Cc: Zhichao Gao <zhichao.gao at intel.com>
Signed-off-by: Enze Zhu <zhuenze at byosoft.com.cn>
Reviewed-by: Liming Gao <liming.gao at intel.com>
---
.../UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
index 7517465ddd..4dd029d6b4 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
@@ -795,6 +795,13 @@ SmbiosPrintStructure (
PRINT_STRUCT_VALUE_LH (Struct, Type17, LogicalSize);
}
}
+ //
+ // Add for smbios 3.3.0
+ //
+ if (AE_SMBIOS_VERSION (0x3, 0x3) && (Struct->Hdr->Length > 0x54)) {
+ PRINT_STRUCT_VALUE_H (Struct, Type17, ExtendedSpeed);
+ PRINT_STRUCT_VALUE_H (Struct, Type17, ExtendedConfiguredMemorySpeed);
+ }
break;
//
--
2.27.0.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#66729): https://edk2.groups.io/g/devel/message/66729
Mute This Topic: https://groups.io/mt/77881887/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list