Blame SOURCES/0001-dmidecode-Unmask-LRDIMM-in-memmory-type-detail.patch

fd304b
From 0915927d93ae5be2a90a13faa157e5b900825212 Mon Sep 17 00:00:00 2001
fd304b
From: Petr Oros <poros@redhat.com>
fd304b
Date: Wed, 29 Jun 2016 11:28:20 +0200
fd304b
Subject: [PATCH] dmidecode: Unmask LRDIMM in memmory type detail
fd304b
fd304b
  For memmory with bit 15 only set show dmidecode None in type detail.
fd304b
fd304b
Signed-off-by: Petr Oros <poros@redhat.com>
fd304b
---
fd304b
 dmidecode.c | 2 +-
fd304b
 1 file changed, 1 insertion(+), 1 deletion(-)
fd304b
fd304b
diff --git a/dmidecode.c b/dmidecode.c
fd304b
index 84c18e1..48d9e66 100644
fd304b
--- a/dmidecode.c
fd304b
+++ b/dmidecode.c
fd304b
@@ -2392,7 +2392,7 @@ static void dmi_memory_device_type_detail(u16 code)
fd304b
 		"LRDIMM"  /* 15 */
fd304b
 	};
fd304b
 
fd304b
-	if ((code & 0x7FFE) == 0)
fd304b
+	if ((code & 0xFFFE) == 0)
fd304b
 		printf(" None");
fd304b
 	else
fd304b
 	{
fd304b
-- 
fd304b
2.7.3
fd304b