summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2026-03-31 17:21:43 +0200
committerPetr Mladek <pmladek@suse.com>2026-04-01 11:26:49 +0200
commit36776b7f8a8955b4e75b5d490a75fee0c7a2a7ef (patch)
treeb0751dea89760d08ad46905ae47f2e79e9011f94 /include/linux
parentf4cf0992be37e6a8bc6cf9108f2c9628a6188381 (diff)
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/printk.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h
index 45c663124c9bd..dc02e217a9d12 100644
--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -803,7 +803,8 @@ static inline void print_hex_dump_debug(const char *prefix_str, int prefix_type,
#endif
/**
- * print_hex_dump_bytes - shorthand form of print_hex_dump() with default params
+ * print_hex_dump_bytes - shorthand form of print_hex_dump_debug() with default
+ * params
* @prefix_str: string to prefix each line with;
* caller supplies trailing spaces for alignment if desired
* @prefix_type: controls whether prefix of an offset, address, or none
@@ -811,7 +812,7 @@ static inline void print_hex_dump_debug(const char *prefix_str, int prefix_type,
* @buf: data blob to dump
* @len: number of bytes in the @buf
*
- * Calls print_hex_dump(), with log level of KERN_DEBUG,
+ * Calls print_hex_dump_debug(), with log level of KERN_DEBUG,
* rowsize of 16, groupsize of 1, and ASCII output included.
*/
#define print_hex_dump_bytes(prefix_str, prefix_type, buf, len) \