From 65438a7ec0f4cddccf810136da6f280bd148af71 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Mon, 23 Mar 2020 16:47:20 +0100 Subject: dmidecode: Print type 33 name unconditionally 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 --- dmidecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmidecode.c b/dmidecode.c index 8ebd862..71c166f 100644 --- a/dmidecode.c +++ b/dmidecode.c @@ -4807,8 +4807,8 @@ static void dmi_decode(const struct dmi_header *h, u16 ver) 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", -- cgit v1.2.1