lkml.org 
[lkml]   [2009]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromJoe Perches <>
Subject[PATCH 4/9] drivers/firmware/dmi_scan.c: Use %pUX to print UUIDs
DateMon, 28 Sep 2009 22:01:06 -0700
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/firmware/dmi_scan.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c
index 938100f..c0deabb 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, "%pUX", d);

dmi_ident[slot] = s;
}
--
1.6.3.1.10.g659a0.dirty


\
 
 \ /
  Last update: 2009-09-29 07:07    [from the cache]
©2003-2010