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>
Showing
- Documentation/dynamic-debug-howto.txt 13 additions, 2 deletionsDocumentation/dynamic-debug-howto.txt
- include/linux/dynamic_debug.h 11 additions, 0 deletionsinclude/linux/dynamic_debug.h
- include/linux/printk.h 17 additions, 0 deletionsinclude/linux/printk.h
- lib/hexdump.c 3 additions, 1 deletionlib/hexdump.c
Loading
Please register or sign in to comment