Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc058f65 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds
Browse files

drivers/firmware/dmi_scan.c: use %pUB to print UUIDs



Signed-off-by: default avatarJoe Perches <joe@perches.com>
Cc: Jeff Garzik <jgarzik@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 35900771
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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;
}