From: Joe Perches Date: Tue, 15 Dec 2009 02:01:11 +0000 (-0800) Subject: drivers/firmware/dmi_scan.c: use %pUB to print UUIDs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc058f65e8c7d83c139692e1c26513d3187dd744;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drivers/firmware/dmi_scan.c: use %pUB to print UUIDs Signed-off-by: Joe Perches Cc: Jeff Garzik Cc: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c index 3a2ccb09e2f8..31b983d9462c 100644 --- a/drivers/firmware/dmi_scan.c +++ b/drivers/firmware/dmi_scan.c @@ -169,10 +169,7 @@ static void __init dmi_save_uuid(const struct dmi_header *dm, int slot, int inde if (!s) return; - sprintf(s, - "%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X", - d[0], d[1], d[2], d[3], d[4], d[5], d[6], d[7], - d[8], d[9], d[10], d[11], d[12], d[13], d[14], d[15]); + sprintf(s, "%pUB", d); dmi_ident[slot] = s; }