Blame SOURCES/0002-dmidecode-Unmask-LRDIMM-in-memory-type-detail.patch

94a757
From 23aa50565a65c98fc452ed8ffdffb49b6504941d Mon Sep 17 00:00:00 2001
94a757
From: Petr Oros <poros@redhat.com>
94a757
Date: Thu, 30 Jun 2016 11:50:30 +0200
94a757
Subject: [PATCH 2/9] dmidecode: Unmask LRDIMM in memory type detail
94a757
94a757
For memory with bit 15 only set, dmidecode would show "None" in type
94a757
detail.
94a757
94a757
Fixes: 0740adaea98a ("Bump release verison to 2.12")
94a757
Signed-off-by: Petr Oros <poros@redhat.com>
94a757
Signed-off-by: Jean Delvare <jdelvare@suse.de>
94a757
---
94a757
 AUTHORS     | 1 +
94a757
 CHANGELOG   | 4 ++++
94a757
 dmidecode.c | 2 +-
94a757
 3 files changed, 6 insertions(+), 1 deletion(-)
94a757
94a757
diff --git a/AUTHORS b/AUTHORS
94a757
index ccf7fbb..748b985 100644
94a757
--- a/AUTHORS
94a757
+++ b/AUTHORS
94a757
@@ -20,6 +20,7 @@ Anton Arapov <anton@redhat.com>
94a757
 Roy Franz <roy.franz@linaro.org>
94a757
 Tyler Bell <tyler.bell@hp.com>
94a757
 Xie XiuQi <xiexiuqi@huawei.com>
94a757
+Petr Oros <poros@redhat.com>
94a757
94a757
 MANY THANKS TO (IN CHRONOLOGICAL ORDER)
94a757
 Werner Heuser
94a757
diff --git a/CHANGELOG b/CHANGELOG
94a757
index ba61cab..ebae4b3 100644
94a757
--- a/CHANGELOG
94a757
+++ b/CHANGELOG
94a757
@@ -1,3 +1,7 @@
94a757
+2016-06-30  Petr Oros  <poros@redhat.com>
94a757
+
94a757
+	* dmidecode.c: Unmask LRDIMM in memory type detail (DMI type 17).
94a757
+
94a757
 2015-11-02  Jean Delvare  <jdelvare@suse.de>
94a757
94a757
	* dmidecode.c, util.c, util.h: Let read_file return the actual data
94a757
diff --git a/dmidecode.c b/dmidecode.c
94a757
index 84c18e1..48d9e66 100644
94a757
--- a/dmidecode.c
94a757
+++ b/dmidecode.c
94a757
@@ -2392,7 +2392,7 @@ static void dmi_memory_device_type_detail(u16 code)
94a757
		"LRDIMM"  /* 15 */
94a757
	};
94a757
94a757
-	if ((code & 0x7FFE) == 0)
94a757
+	if ((code & 0xFFFE) == 0)
94a757
		printf(" None");
94a757
	else
94a757
	{
94a757
--
94a757
2.10.2