Blame SOURCES/0001-Fix-dmi_cache_size_2-will-add-unit-twice.patch

7bcc43
From c217e2bd9dfbd23c04dac19759a2d59845fcd6f6 Mon Sep 17 00:00:00 2001
7bcc43
From: Lichen Liu <lichliu@redhat.com>
7bcc43
Date: Mon, 6 Feb 2023 14:46:47 +0800
7bcc43
Subject: [PATCH] Fix dmi_cache_size_2 will add unit twice.
7bcc43
7bcc43
Signed-off-by: Lichen Liu <lichliu@redhat.com>
7bcc43
---
7bcc43
 src/dmidecode.c | 2 --
7bcc43
 1 file changed, 2 deletions(-)
7bcc43
7bcc43
diff --git a/src/dmidecode.c b/src/dmidecode.c
7bcc43
index d1a10c1..d40f0ee 100644
7bcc43
--- a/src/dmidecode.c
7bcc43
+++ b/src/dmidecode.c
7bcc43
@@ -1843,8 +1843,6 @@ void dmi_cache_size_2(xmlNode *node, const char *tagname, u32 code)
7bcc43
                 size.l = code << 6;
7bcc43
                 size.h = code >> 26;
7bcc43
         } else {
7bcc43
-                dmixml_AddAttribute(caches_n, "unit", "KB");
7bcc43
-                dmixml_AddTextContent(caches_n, "%i", code);
7bcc43
                 size.l = code;
7bcc43
                 size.h = 0;
7bcc43
         }
7bcc43
-- 
7bcc43
2.39.1
7bcc43