lib/hexdump.c: reduce stack variable size and cleanups
authorJoe Perches <joe@perches.com>
Mon, 24 May 2010 21:33:22 +0000 (14:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 May 2010 15:07:05 +0000 (08:07 -0700)
commitdb0fd97c270f1e80321f7ae55234643ca0978c54
tree1f825911c8c036e24b457873c74f8e9d16830775
parent2b2f68b5383ea107295d7f1483256866e2daa1e3
lib/hexdump.c: reduce stack variable size and cleanups

Reduce char linebuf[200] to the actual size required., which is 32 * 3 + 2
+ 32 + 1, ie: linebuf[131].

Change examples to use bool true not int 1.

Align multiline argument indentation to open parenthesis.

Use temporary for ptr[j] so trigraph fits on single line.

Convert printk ptr from %*p, (int)(2 * sizeof(void *)) to %p as %p uses
the same calculation for size.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/hexdump.c