[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dmidecode] [PATCH 1/8] dmidecode: Print type 33 name unconditionally
From: |
Jean Delvare |
Subject: |
[dmidecode] [PATCH 1/8] dmidecode: Print type 33 name unconditionally |
Date: |
Mon, 16 Mar 2020 10:37:17 +0100 |
Even if a type 33 structure is too short, we can still display its
type name as we do for all other structure types.
Signed-off-by: Jean Delvare <address@hidden>
---
dmidecode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- dmidecode.orig/dmidecode.c 2020-02-17 18:12:26.033055139 +0100
+++ dmidecode/dmidecode.c 2020-02-17 18:13:12.033583499 +0100
@@ -4807,8 +4807,8 @@ static void dmi_decode(const struct dmi_
break;
case 33: /* 7.34 64-bit Memory Error Information */
- if (h->length < 0x1F) break;
printf("64-bit Memory Error Information\n");
+ if (h->length < 0x1F) break;
printf("\tType: %s\n",
dmi_memory_error_type(data[0x04]));
printf("\tGranularity: %s\n",
--
Jean Delvare
SUSE L3 Support
- [dmidecode] [PATCH 0/8] dmidecode: Minors fixes and clean-ups, Jean Delvare, 2020/03/16
- [dmidecode] [PATCH 1/8] dmidecode: Print type 33 name unconditionally,
Jean Delvare <=
- [dmidecode] [PATCH 2/8] dmidecode: Don't choke on invalid processor voltage, Jean Delvare, 2020/03/16
- [dmidecode] [PATCH 3/8] dmidecode: Simplify the formatting of memory error status, Jean Delvare, 2020/03/16
- [dmidecode] [PATCH 4/8] dmidecode: Fix the alignment of type 25 name, Jean Delvare, 2020/03/16
- [dmidecode] [PATCH 5/8] dmidecode: Code indentation fixes, Jean Delvare, 2020/03/16
- [dmidecode] [PATCH 6/8] dmidecode: Reduce the indentation of type 42 structures, Jean Delvare, 2020/03/16
- [dmidecode] [PATCH 7/8] dmidecode: Move type 42 warning messages to stderr, Jean Delvare, 2020/03/16
- [dmidecode] [PATCH 8/8] dmidecode: Refactor ASCII filtering of DMI strings, Jean Delvare, 2020/03/16