[edk2-devel] [PATCH 1/1] ShellPkg: Fix smbiosview system enclosure type table

Rebecca Cran rebecca at nuviainc.com
Wed Mar 31 01:54:32 UTC 2021


The SystemEnclosureTypeTable in QueryTable.c contained a couple
of errors: value 0x10 is "Lunch Box" not "Main Server Chassis", and
the Sub Notebook value was repeated as 0x13 when that entry is for
"SubChassis". The entries in-between needed adjusted.

Signed-off-by: Rebecca Cran <rebecca at nuviainc.com>
---
 ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
index d0796a0e5141..39a3e3c0895b 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
@@ -188,20 +188,20 @@ TABLE_ITEM  SystemEnclosureTypeTable[] = {
   },
   {
     0x10,
+    L"  Lunch Box"
+  },
+  {
+    0x11,
     L"  Main Server Chassis"
   },
   {
-    0x11,
+    0x12,
     L"  Expansion Chassis"
   },
   {
-    0x12,
+    0x13,
     L"  SubChassis"
   },
-  {
-    0x13,
-    L"  Sub Notebook"
-  },
   {
     0x14,
     L"  Bus Expansion Chassis"
-- 
2.26.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#73559): https://edk2.groups.io/g/devel/message/73559
Mute This Topic: https://groups.io/mt/81741180/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