mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
ShellPkg: Fix smbiosview Type 26 location/status decode
The smbiosview Type 26 Voltage Probe decoder uses the low 5 bits of LocationAndStatus as the probe location and the high 3 bits as the probe status. However, the Type 26 lookup tables were swapped: VPLocationTable contained status strings and VPStatusTable contained location strings. This caused valid records to be displayed as, for example: Voltage Probe - Location: OK Voltage Probe - Status: Processor Swap the table contents so Type 26 output matches the SMBIOS LocationAndStatus bit layout. Signed-off-by: VarshitPandya <varshit.pandya@arm.com>
This commit is contained in:
parent
8dab052c57
commit
7bc6629f40
1 changed files with 27 additions and 27 deletions
|
|
@ -3236,33 +3236,6 @@ TABLE_ITEM PBDeviceChemistryTable[] = {
|
|||
};
|
||||
|
||||
TABLE_ITEM VPLocationTable[] = {
|
||||
{
|
||||
0x01,
|
||||
L" Other "
|
||||
},
|
||||
{
|
||||
0x02,
|
||||
L" Unknown "
|
||||
},
|
||||
{
|
||||
0x03,
|
||||
L" OK "
|
||||
},
|
||||
{
|
||||
0x04,
|
||||
L" Non-critical "
|
||||
},
|
||||
{
|
||||
0x05,
|
||||
L" Critical "
|
||||
},
|
||||
{
|
||||
0x06,
|
||||
L" Non-recoverable "
|
||||
},
|
||||
};
|
||||
|
||||
TABLE_ITEM VPStatusTable[] = {
|
||||
{
|
||||
0x01,
|
||||
L" Other "
|
||||
|
|
@ -3309,6 +3282,33 @@ TABLE_ITEM VPStatusTable[] = {
|
|||
},
|
||||
};
|
||||
|
||||
TABLE_ITEM VPStatusTable[] = {
|
||||
{
|
||||
0x01,
|
||||
L" Other "
|
||||
},
|
||||
{
|
||||
0x02,
|
||||
L" Unknown "
|
||||
},
|
||||
{
|
||||
0x03,
|
||||
L" OK "
|
||||
},
|
||||
{
|
||||
0x04,
|
||||
L" Non-critical "
|
||||
},
|
||||
{
|
||||
0x05,
|
||||
L" Critical "
|
||||
},
|
||||
{
|
||||
0x06,
|
||||
L" Non-recoverable "
|
||||
},
|
||||
};
|
||||
|
||||
TABLE_ITEM CoolingDeviceStatusTable[] = {
|
||||
{
|
||||
0x01,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue