Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176380
b: refs/heads/master
c: 3590077
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Dec 15, 2009
1 parent 1c847fb commit d2c443e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 03daa57cdb2198e36a41ca1f63a030759490363f
refs/heads/master: 35900771c06cee858b725ef7069fb6934691b319
10 changes: 3 additions & 7 deletions trunk/drivers/char/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -1245,12 +1245,8 @@ static int proc_do_uuid(ctl_table *table, int write,
if (uuid[8] == 0)
generate_random_uuid(uuid);

sprintf(buf, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-"
"%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]);
sprintf(buf, "%pU", uuid);

fake_table.data = buf;
fake_table.maxlen = sizeof(buf);

Expand Down Expand Up @@ -1310,7 +1306,7 @@ ctl_table random_table[] = {

/********************************************************************
*
* Random funtions for networking
* Random functions for networking
*
********************************************************************/

Expand Down

0 comments on commit d2c443e

Please sign in to comment.