aboutsummaryrefslogtreecommitdiffstats
path: root/lib/genalloc.c
diff options
context:
space:
mode:
authorLi Zefan <[email protected]>2009-06-16 22:33:45 +0000
committerLinus Torvalds <[email protected]>2009-06-17 02:47:51 +0000
commitc67ae69b661f3c2fe1a9c8259bc948c68b082166 (patch)
tree81ad71329c162167f2af11fbfea60062db0ced3b /lib/genalloc.c
parentuse printk_once() in several places (diff)
downloadkernel-c67ae69b661f3c2fe1a9c8259bc948c68b082166.tar.gz
kernel-c67ae69b661f3c2fe1a9c8259bc948c68b082166.zip
hexdump: remove the trailing space
For example: hex_dump_to_buffer("AB", 2, 16, 1, buf, 100, 0); pr_info("[%s]\n", buf); I'd expect the output to be "[41 42]", but actually it's "[41 42 ]" This patch also makes the required buf to be minimum. To print the hex format of "AB", a buf with size 6 should be sufficient, but hex_dump_to_buffer() required at least 8. Signed-off-by: Li Zefan <[email protected]> Acked-by: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions