Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lib/hexdump: print_hex_dump_bytes() calls print_hex_dump_debug()

print_hex_dump_bytes() claims to be a simple wrapper around
print_hex_dump(), but it actally calls print_hex_dump_debug(), which
means no output is printed if (dynamic) DEBUG is disabled.

Update the documentation to match the implementation.

Fixes: 091cb0994edd20d6 ("lib/hexdump: make print_hex_dump_bytes() a nop on !DEBUG builds")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://patch.msgid.link/3d5c3069fd9102ecaf81d044b750cd613eb72a08.1774970392.git.geert+renesas@glider.be
Signed-off-by: Petr Mladek <pmladek@suse.com>

authored by

Geert Uytterhoeven and committed by
Petr Mladek
36776b7f f4cf0992

+3 -2
+3 -2
include/linux/printk.h
··· 803 803 #endif 804 804 805 805 /** 806 - * print_hex_dump_bytes - shorthand form of print_hex_dump() with default params 806 + * print_hex_dump_bytes - shorthand form of print_hex_dump_debug() with default 807 + * params 807 808 * @prefix_str: string to prefix each line with; 808 809 * caller supplies trailing spaces for alignment if desired 809 810 * @prefix_type: controls whether prefix of an offset, address, or none ··· 812 811 * @buf: data blob to dump 813 812 * @len: number of bytes in the @buf 814 813 * 815 - * Calls print_hex_dump(), with log level of KERN_DEBUG, 814 + * Calls print_hex_dump_debug(), with log level of KERN_DEBUG, 816 815 * rowsize of 16, groupsize of 1, and ASCII output included. 817 816 */ 818 817 #define print_hex_dump_bytes(prefix_str, prefix_type, buf, len) \