From nobody Wed Apr 1 11:15:24 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DD674035AB for ; Tue, 31 Mar 2026 15:21:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774970512; cv=none; b=JwNoXN0rH1NIWu/0bxDmHga8q/f6W0cEwSJZstp2s2flAoG8Aqkg4BMPXlxiYzvZbBQeKfT4UEGFdVokJdSx7lzhgcfjz2ecKlMyqHFLWhQWnUN8lQ8Yvz1bOOFPNDLNnXc6V6RBvBIvh/m+5M7QV8fZI/ANMF8QXd5/ylllKYE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774970512; c=relaxed/simple; bh=HIv5BuBRv4rMtQHeyCUOJKduG5G1L3wjpSxUPlslE+w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lMh5hcNmhwyHquo6JSHDwb4Jvb186TYvhqjKlGrbLOAUUldPuG/xdfb13zE5iIivRWj2o37PAWUPYssgiacxFUwd/ZNY6rjjXxSjySpTYQpFI8MPAuVKRtAxo3DqbGsmXw4eUIEaN5SZKGaDzNl+KKewNwKJY7XTBUccY2cqKDk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E14B7C19423; Tue, 31 Mar 2026 15:21:49 +0000 (UTC) From: Geert Uytterhoeven To: Petr Mladek , Steven Rostedt , John Ogness , Sergey Senozhatsky , Andrew Morton , Stephen Boyd Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] lib/hexdump: print_hex_dump_bytes() calls print_hex_dump_debug() Date: Tue, 31 Mar 2026 17:21:43 +0200 Message-ID: <3d5c3069fd9102ecaf81d044b750cd613eb72a08.1774970392.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Petr Mladek --- I added a print_hex_dump_bytes() call, and wondered where my hexdump went... --- include/linux/printk.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/printk.h b/include/linux/printk.h index 63d516c873b4c412..1a33b813808cabde 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h @@ -802,7 +802,8 @@ static inline void print_hex_dump_debug(const char *pre= fix_str, int prefix_type, #endif =20 /** - * 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 de= fault + * 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 @@ -810,7 +811,7 @@ static inline void print_hex_dump_debug(const char *pre= fix_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) \ --=20 2.43.0