DMI type 0 is the BIOS information, it doesn't tell us about the
system vendor. DMI type 1 does that. It made no difference so far
because the only vendor with support for OEM-type decoding was HP and
they make their own BIOS, but it will matter as soon as we add support
for more vendors.
---
 dmidecode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- dmidecode.orig/dmidecode.c  2015-04-29 12:53:18.701011883 +0200
+++ dmidecode/dmidecode.c       2015-04-29 14:59:34.900445715 +0200
@@ -4407,7 +4407,7 @@ static void dmi_table_decode(u8 *buf, u3
                                h.handle, h.type, h.length);
 
                /* assign vendor for vendor-specific decodes later */
-               if (h.type == 0 && h.length >= 5)
+               if (h.type == 1 && h.length >= 5)
                        dmi_set_vendor(dmi_string(&h, data[0x04]));
 
                /* look for the next handle */

-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
https://lists.nongnu.org/mailman/listinfo/dmidecode-devel

Reply via email to