From: Jean Delvare <jdelvare@suse.de>
Date: Fri, 13 Apr 2018 15:37:59 +0200
Subject: firmware: dmi_scan: Use lowercase letters for UUID
Git-commit: 712ff25450bd01366301eef81c33e865d901e7b7
Patch-mainline: v4.17
References: FATE#326044 bsc#1105835
RFC 4122 asks for letters a-f in UUID to be lowercase. Follow this
recommendation.
Suggested by Paul Dagnelie at:
https://savannah.nongnu.org/bugs/index.php?53569
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Rationale for backporting this commit:
dmidecode in SLE15 SP1 has been updated to version 3.2 which contains
a smiliar change. We want dmidecode and the kernel to be consistent
in how they represent the system UUID.
---
drivers/firmware/dmi_scan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/firmware/dmi_scan.c
+++ b/drivers/firmware/dmi_scan.c
@@ -216,9 +216,9 @@ static void __init dmi_save_uuid(const s
* says that this is the defacto standard.
*/
if (dmi_ver >= 0x020600)
- sprintf(s, "%pUL", d);
+ sprintf(s, "%pUl", d);
else
- sprintf(s, "%pUB", d);
+ sprintf(s, "%pUb", d);
dmi_ident[slot] = s;
}