summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2015-05-04 11:52:37 +0000
committerJean Delvare <jdelvare@suse.de>2015-05-04 11:52:37 +0000
commit6e3a3f3cd36f633a56437b42e40d6769ad8acfe7 (patch)
treef53c32a77e27257cfbd82adacb0c72ac0b58893d
parentd4120aa505e0699c43bddbe492efe56ce095f9e5 (diff)
downloaddmidecode-git-6e3a3f3cd36f633a56437b42e40d6769ad8acfe7.tar.gz
dmidecode: Get OEM vendor from System Information (DMI type 1)
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.
-rw-r--r--CHANGELOG1
-rw-r--r--dmidecode.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 3d75326..a28282f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -3,6 +3,7 @@
* dmidecode.c: Move table decoding to a separate function.
* dmidecode.c: Simplify function dmi_table_dump.
* dmidecode.c: Display types 41 and 42 in quiet mode too.
+ * dmidecode.c: Get OEM vendor from System Information (DMI type 1).
2015-04-28 Jean Delvare <jdelvare@suse.de>
diff --git a/dmidecode.c b/dmidecode.c
index 94f0711..dfc6368 100644
--- a/dmidecode.c
+++ b/dmidecode.c
@@ -4406,7 +4406,7 @@ static void dmi_table_decode(u8 *buf, u32 len, u16 num, u16 ver, u32 flags)
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 */