forked from pool/dmidecode
84e0754eb1
3 recommended fixes from upstream: - dmidecode-print-type-33-name-unconditionally.patch: Print type 33 name unconditionally. - dmidecode-dont-choke-on-invalid-processor-voltage.patch: Don't choke on invalid processor voltage. - dmidecode-fix-the-alignment-of-type-25-name.patch: Fix the alignment of type 25 name. Build fix: - dmidecode-allow-overriding-build-settings-from-env.patch: Fix the build system so that the compilation flags passed by OBS are added to the ones dmidecode needs, instead of overriding them entirely. - dmidecode.spec: Pass the CFLAGS through the environment, instead of as a parameter. OBS-URL: https://build.opensuse.org/request/show/796018 OBS-URL: https://build.opensuse.org/package/show/Base:System/dmidecode?expand=0&rev=56
27 lines
829 B
Diff
27 lines
829 B
Diff
From: Jean Delvare <jdelvare@suse.de>
|
|
Date: Mon, 23 Mar 2020 16:47:20 +0100
|
|
Subject: dmidecode: Print type 33 name unconditionally
|
|
Git-commit: 65438a7ec0f4cddccf810136da6f280bd148af71
|
|
Patch-mainline: yes
|
|
|
|
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 <jdelvare@suse.de>
|
|
---
|
|
dmidecode.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/dmidecode.c
|
|
+++ b/dmidecode.c
|
|
@@ -4786,8 +4786,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",
|