dmidecode-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dmidecode] [PATCH 5/7] dmidecode: Enumerate the new struct types


From: Jean Delvare
Subject: [dmidecode] [PATCH 5/7] dmidecode: Enumerate the new struct types
Date: Mon, 30 May 2022 14:16:45 +0200

Add types 44, 45 and 46 to dmi_smbios_structure_type().

Signed-off-by: Jean Delvare <jdelvare@suse.de>
---
 dmidecode.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

--- dmidecode.orig/dmidecode.c  2022-05-30 13:02:37.042501022 +0200
+++ dmidecode/dmidecode.c       2022-05-30 13:06:10.898177601 +0200
@@ -203,12 +203,15 @@ static const char *dmi_smbios_structure_
                "Additional Information",
                "Onboard Device",
                "Management Controller Host Interface",
-               "TPM Device", /* 43 */
+               "TPM Device",
+               "Processor",
+               "Firmware",
+               "String Property" /* 46 */
        };
 
        if (code >= 128)
                return "OEM-specific";
-       if (code <= 43)
+       if (code <= 46)
                return type[code];
        return out_of_spec;
 }


-- 
Jean Delvare
SUSE L3 Support



reply via email to

[Prev in Thread] Current Thread [Next in Thread]