]> git.baikalelectronics.ru Git - kernel.git/commitdiff
firmware: dmi_scan: Use lowercase letters for UUID
authorJean Delvare <jdelvare@suse.de>
Fri, 13 Apr 2018 13:37:59 +0000 (15:37 +0200)
committerJean Delvare <jdelvare@suse.de>
Fri, 13 Apr 2018 13:37:59 +0000 (15:37 +0200)
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>
drivers/firmware/dmi_scan.c

index 2c915a8471580585ab3b1b771c17b98da3acb30b..16dd5ca212c61a2e0e1f76ea4e34f3038f98d1e8 100644 (file)
@@ -210,9 +210,9 @@ static void __init dmi_save_uuid(const struct dmi_header *dm, int slot,
         * 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;
 }