File dmidecode-missing-commas.patch of Package dmidecode.28623

From: Lianbo Jiang <lijiang@redhat.com>
Date: Thu, 10 Dec 2020 11:21:21 +0100
Subject: Missing comma in the dmi_slot_type()
Patch-mainline: yes
Git-commit: ac6a64496fc99a5cc05ebe4dd7d1b88f60041009

In the initialization of "type", a suspicious concatenated string
"PCI Express Mini 76-pinPCI Express 4 SFF-8639 (U.2)" is produced
due to a missing comma between lines.

[JD: Fixed a similar bug in dmi_processor_characteristics.]

Fixes: b289de9deb32 ("Add new processor characteristics bits from SMBIOS spec 3.4.0")
Fixes: c54348130a2a ("dmidecode: Add new system slot types from SMBIOS spec 3.4.0")
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
---
 dmidecode.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/dmidecode.c
+++ b/dmidecode.c
@@ -1319,7 +1319,7 @@ static void dmi_processor_characteristic
 		"Execute Protection",
 		"Enhanced Virtualization",
 		"Power/Performance Control",
-		"128-bit Capable"
+		"128-bit Capable",
 		"Arm64 SoC ID" /* 9 */
 	};
 
@@ -1821,7 +1821,7 @@ static const char *dmi_slot_type(u8 code
 		"PCI Express 3 SFF-8639 (U.2)",
 		"PCI Express Mini 52-pin with bottom-side keep-outs",
 		"PCI Express Mini 52-pin without bottom-side keep-outs",
-		"PCI Express Mini 76-pin"
+		"PCI Express Mini 76-pin",
 		"PCI Express 4 SFF-8639 (U.2)",
 		"PCI Express 5 SFF-8639 (U.2)",
 		"OCP NIC 3.0 Small Form Factor (SFF)",
openSUSE Build Service is sponsored by