Skip to content

Commit a65e226

Browse files
ANU-15PRIYAapop5
authored andcommitted
ShellPkg: Review SMBIOS 3.9 specification
Add new structure members RackType and RackHeight in Smbios Type3. Signed-off-by: Anupriya <[email protected]> (cherry picked from commit a0e8b71ee5356d4539199739f52d0af2fe4bc65b)
1 parent b80bea1 commit a65e226

File tree

1 file changed

+10
-0
lines changed
  • ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView

1 file changed

+10
-0
lines changed

ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,16 @@ SmbiosPrintStructure (
469469
}
470470
}
471471

472+
if (AE_SMBIOS_VERSION (0x3, 0x9)) {
473+
if (Struct->Hdr->Length > (0x16 + (Struct->Type3->ContainedElementCount * Struct->Type3->ContainedElementRecordLength))) {
474+
ShellPrintEx (-1, -1, L"Rack Type: %x\n", Buffer[0x16 + (Struct->Type3->ContainedElementCount * Struct->Type3->ContainedElementRecordLength)]);
475+
}
476+
477+
if (Struct->Hdr->Length > (0x17 + (Struct->Type3->ContainedElementCount * Struct->Type3->ContainedElementRecordLength))) {
478+
ShellPrintEx (-1, -1, L"Rack Height: %x\n", Buffer[0x17 + (Struct->Type3->ContainedElementCount * Struct->Type3->ContainedElementRecordLength)]);
479+
}
480+
}
481+
472482
break;
473483

474484
//

0 commit comments

Comments
 (0)