projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3590077
)
drivers/firmware/dmi_scan.c: use %pUB to print UUIDs
author
Joe Perches
<joe@perches.com>
Tue, 15 Dec 2009 02:01:11 +0000
(18:01 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:33 +0000
(08:53 -0800)
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Jeff Garzik <jgarzik@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/firmware/dmi_scan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/firmware/dmi_scan.c
b/drivers/firmware/dmi_scan.c
index 3a2ccb09e2f85d0cb6c9344dc92d8579e34df590..31b983d9462c7c9f5a01b87fa0a449076bd12aa1 100644
(file)
--- 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;
}