<HTML><BODY>Cc: Philippe Mathieu-Daudé <philmd@redhat.com><BR>
Cc: Ray Ni <ray.ni@intel.com><BR>
Cc: Zhichao Gao <zhichao.gao@intel.com><BR>
Ref: <a href="https://bugzilla.tianocore.org/show_bug.cgi?id=3177" target="_blank">https://bugzilla.tianocore.org/show_bug.cgi?id=3177</a><BR>
Signed-off-by: Mars CC Lin <mars_cc_lin@phoenix.com><BR>
---<BR>
.../SmbiosView/PrintInfo.c | 16 ++++++++++++++++<BR>
.../SmbiosView/SmbiosViewStrings.uni | 1 +<BR>
2 files changed, 17 insertions(+)<BR>
<BR>
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c<BR>
index a3dc7b68c4..36c743d45b 100644<BR>
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c<BR>
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c<BR>
@@ -404,6 +404,22 @@ SmbiosPrintStructure (<BR>
if (Struct->Hdr->Length > 0x12) {<BR>
<BR>
PRINT_STRUCT_VALUE (Struct, Type3, NumberofPowerCords);<BR>
<BR>
}<BR>
<BR>
+ if (Struct->Hdr->Length > 0x13) {<BR>
<BR>
+ PRINT_STRUCT_VALUE (Struct, Type3, ContainedElementCount);<BR>
<BR>
+ }<BR>
<BR>
+ if (Struct->Hdr->Length > 0x14) {<BR>
<BR>
+ PRINT_STRUCT_VALUE (Struct, Type3, ContainedElementRecordLength);<BR>
<BR>
+ }<BR>
<BR>
+ for (Index = 0;Index < Struct->Type3->ContainedElementCount;Index++) {<BR>
<BR>
+ UINT8 Index2 = 0;<BR>
<BR>
+<BR>
<BR>
+ ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_CONTAINED_ELEMENT), gShellDebug1HiiHandle, Index+1);<BR>
<BR>
+ for (Index2 = 0;Index2<Struct->Type3->ContainedElementRecordLength;Index2++) {<BR>
<BR>
+ Print (L"%02X ", Buffer[0x15 + (Index * Struct->Type3->ContainedElementRecordLength) + Index2]);<BR>
<BR>
+ }<BR>
<BR>
+ Print (L"\n");<BR>
<BR>
+ }<BR>
<BR>
+<BR>
<BR>
}<BR>
<BR>
if (AE_SMBIOS_VERSION (0x2, 0x7) && (Struct->Hdr->Length > 0x13)) {<BR>
<BR>
if (Struct->Hdr->Length > (0x15 + (Struct->Type3->ContainedElementCount * Struct->Type3->ContainedElementRecordLength))) {<BR>
<BR>
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosViewStrings.uni b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosViewStrings.uni<BR>
index 8bcba7ccf7..9433e8a25f 100644<BR>
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosViewStrings.uni<BR>
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosViewStrings.uni<BR>
@@ -93,6 +93,7 @@<BR>
#string STR_SMBIOSVIEW_PRINTINFO_POWER_SUPPLY_STATE #language en-US "Power Supply State "<BR>
<BR>
#string STR_SMBIOSVIEW_PRINTINFO_THERMAL_STATE #language en-US "Thermal state "<BR>
<BR>
#string STR_SMBIOSVIEW_PRINTINFO_SECURITY_STATUS #language en-US "Security Status "<BR>
<BR>
+#string STR_SMBIOSVIEW_PRINTINFO_CONTAINED_ELEMENT #language en-US "Contained Element %d: "<BR>
<BR>
#string STR_SMBIOSVIEW_PRINTINFO_SUPOPRT #language en-US "Support "<BR>
<BR>
#string STR_SMBIOSVIEW_PRINTINFO_CURRENT #language en-US "Current "<BR>
<BR>
#string STR_SMBIOSVIEW_PRINTINFO_INSTALLED #language en-US "Installed "<BR>
<BR>
-- <BR>
2.29.1.windows.1<BR>
</BODY></HTML>
<div width="1" style="color:white;clear:both">_._,_._,_</div> <hr> Groups.io Links:<p> You receive all messages sent to this group. <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/70647">View/Reply Online (#70647)</a> | | <a target="_blank" href="https://groups.io/mt/80003667/1813853">Mute This Topic</a> | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br> <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> | <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a> [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>