]> git.baikalelectronics.ru Git - kernel.git/commit
dynamic_debug: dynamic hex dump
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Wed, 5 Dec 2012 21:48:27 +0000 (16:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 20:19:09 +0000 (12:19 -0800)
commit28f32b3ac40ab3765f9c14faa792da64f8b99b69
treefd2c5ef59a77ba532a5957923f9919fa170027f9
parent7a2dfd8c3e05910a10a868897e2a4016019b467a
dynamic_debug: dynamic hex dump

Introduce print_hex_dump_debug() that can be dynamically controlled, similar to
pr_debug.

Also, make print_hex_dump_bytes() dynamically controlled

Implement only 'p' flag (_DPRINTK_FLAGS_PRINT) to keep it simple since hex dump prints
multiple lines and long prefix would impact readability.
To provide line/file etc. information, use pr_debug or similar
before/after print_hex_dump_debug()

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/dynamic-debug-howto.txt
include/linux/dynamic_debug.h
include/linux/printk.h
lib/hexdump.c