Skip to content

Commit

Permalink
dmidecode: Unmask LRDIMM in memory type detail
Browse files Browse the repository at this point in the history
For memory with bit 15 only set, dmidecode would show "None" in type
detail.

Fixes: 0740ada ("Bump release verison to 2.12")
Signed-off-by: Petr Oros <poros@redhat.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
  • Loading branch information
orosp authored and jdelvare committed Jun 30, 2016
1 parent cff11af commit 23aa505
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Anton Arapov <anton@redhat.com>
Roy Franz <roy.franz@linaro.org>
Tyler Bell <tyler.bell@hp.com>
Xie XiuQi <xiexiuqi@huawei.com>
Petr Oros <poros@redhat.com>

MANY THANKS TO (IN CHRONOLOGICAL ORDER)
Werner Heuser
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2016-06-30 Petr Oros <poros@redhat.com>

* dmidecode.c: Unmask LRDIMM in memory type detail (DMI type 17).

2015-11-02 Jean Delvare <jdelvare@suse.de>

* dmidecode.c, util.c, util.h: Let read_file return the actual data
Expand Down
2 changes: 1 addition & 1 deletion dmidecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2392,7 +2392,7 @@ static void dmi_memory_device_type_detail(u16 code)
"LRDIMM" /* 15 */
};

if ((code & 0x7FFE) == 0)
if ((code & 0xFFFE) == 0)
printf(" None");
else
{
Expand Down

0 comments on commit 23aa505

Please sign in to comment.