From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 4368A3ED3A9; Wed, 20 May 2026 16:57:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779296264; cv=none; b=s5IBKsvWZD/y/i5UvTn2j7x2U+u01bUDfDeXczAi+2AbnFJ/Xp3NDN+tmNZLSKBe4QkEdnM4rzU8MpWaGANXka4y7CdabXL7jt9BvGRJ8RuUQkP6tkBgVGT60+fj5+djjiCTrCDVKTZYEndefCYMQqYjfCuwlLVZnsdb6MfQn18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779296264; c=relaxed/simple; bh=ix9ig+XPAw1pgUP6JfrcVqEnjEX6PJJHmWoSUndM6lo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I4/tbMx0N2tCk4Go7JQDEciEK7YGUcctCeWJV92fVy66zA1lYVtIGbpTVmPWPk1/diHg5DbjAnO8bSYetX/Ncz/hknVLCSTkJzw2qAoW93NwNZjFlcuxuSpzP9wgrM8jNeVsUs39Pg3JnmEMCFIRA7AmgW+Lx057h4heSy7gpWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ksu/hS5R; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ksu/hS5R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0ABC1F000E9; Wed, 20 May 2026 16:57:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779296263; bh=/4UayRqN+N5WufoDfMVF3vWsLrCSXiqXrytoyy8s/A4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Ksu/hS5RhUQljLuz5QDUrb9badYP3wkKxSawhJ2LyrIvYX0seAd/geTaw53drdRsm KRuqtkYIVaICk5W87d5fafdIYQ//lic/MiKIyBHAVpzyxw6I3OCePSYmFGwzuSs4D3 Ql6RKxKq3UwFgA0zYNGqRi1SLFg/+AHlvyWtHL7c= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Geert Uytterhoeven , Petr Mladek , Sasha Levin Subject: [PATCH 7.0 0731/1146] lib/hexdump: print_hex_dump_bytes() calls print_hex_dump_debug() Date: Wed, 20 May 2026 18:16:21 +0200 Message-ID: <20260520162204.748118815@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162148.390695140@linuxfoundation.org> References: <20260520162148.390695140@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Geert Uytterhoeven [ Upstream commit 36776b7f8a8955b4e75b5d490a75fee0c7a2a7ef ] 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 Link: https://patch.msgid.link/3d5c3069fd9102ecaf81d044b750cd613eb72a08.1774970392.git.geert+renesas@glider.be Signed-off-by: Petr Mladek Signed-off-by: Sasha Levin --- 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 54e3c621fec37..f594c1266bfd4 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h @@ -815,7 +815,8 @@ static inline void print_hex_dump_devel(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 @@ -823,7 +824,7 @@ static inline void print_hex_dump_devel(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) \ -- 2.53.0