Blame SOURCES/0005-correctly-format-SMBIOS-UUID.patch

121cca
From bb82dda52da2029a527577a796daffcbc97d8e83 Mon Sep 17 00:00:00 2001
121cca
From: Lyonel Vincent <lyonel@ezix.org>
121cca
Date: Mon, 30 Mar 2020 23:36:15 +0200
121cca
Subject: [PATCH 05/65] correctly format SMBIOS UUID
121cca
MIME-Version: 1.0
121cca
Content-Type: text/plain; charset=UTF-8
121cca
Content-Transfer-Encoding: 8bit
121cca
121cca
cf. https://en.wikipedia.org/wiki/Universally_unique_identifier (RFC 4122 Section 3 requires that the characters be generated in lower case, while being case-insensitive on input.)
121cca
121cca
cf. https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_2.7.1.pdf ยง7.2.1
121cca
---
121cca
 src/core/dmi.cc | 4 ++--
121cca
 1 file changed, 2 insertions(+), 2 deletions(-)
121cca
121cca
diff --git a/src/core/dmi.cc b/src/core/dmi.cc
121cca
index c4c01e0..30b3ab3 100644
121cca
--- a/src/core/dmi.cc
121cca
+++ b/src/core/dmi.cc
121cca
@@ -195,8 +195,8 @@ static string dmi_uuid(const u8 * p)
121cca
     return string(REMOVED);
121cca
 
121cca
   snprintf(buffer, sizeof(buffer),
121cca
-    "%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X",
121cca
-    p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10],
121cca
+    "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
121cca
+    p[3], p[2], p[1], p[0], p[5], p[4], p[7], p[6], p[8], p[9], p[10],
121cca
     p[11], p[12], p[13], p[14], p[15]);
121cca
 
121cca
   return hw::strip(string(buffer));
121cca
-- 
121cca
2.33.1
121cca