dmidecode-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]