Commit 5552138d authored by Joe Perches's avatar Joe Perches Committed by james toy

Signed-off-by: Joe Perches <joe@perches.com>

Acked-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 510cf6d6
...@@ -1245,12 +1245,8 @@ static int proc_do_uuid(ctl_table *table, int write, ...@@ -1245,12 +1245,8 @@ static int proc_do_uuid(ctl_table *table, int write,
if (uuid[8] == 0) if (uuid[8] == 0)
generate_random_uuid(uuid); generate_random_uuid(uuid);
sprintf(buf, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-" sprintf(buf, "%pU", uuid);
"%02x%02x%02x%02x%02x%02x",
uuid[0], uuid[1], uuid[2], uuid[3],
uuid[4], uuid[5], uuid[6], uuid[7],
uuid[8], uuid[9], uuid[10], uuid[11],
uuid[12], uuid[13], uuid[14], uuid[15]);
fake_table.data = buf; fake_table.data = buf;
fake_table.maxlen = sizeof(buf); fake_table.maxlen = sizeof(buf);
...@@ -1350,7 +1346,7 @@ ctl_table random_table[] = { ...@@ -1350,7 +1346,7 @@ ctl_table random_table[] = {
/******************************************************************** /********************************************************************
* *
* Random funtions for networking * Random functions for networking
* *
********************************************************************/ ********************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment