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 DEF2225B08A; Sat, 30 May 2026 18:42:58 +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=1780166579; cv=none; b=qenKMIg9hnYFiocOqo/SIyDZFwlNUoTuozLuTtxsUF7aFkMuI2JBSGb3v96pZihoNMke9MJebPvg9hF3Odfd01fDkKHRefKQQ0P6E/wgcyCV2AluJYoNLc+/oFZE+hHMStOK4cphZpAHwt3xdivwQZZHqei+3plj9uUXvq0H4VQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780166579; c=relaxed/simple; bh=aUNrH2NqLTDO+87JY5A4NaeHtAmdUf0mVvUPJ5R2DS0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jOPIQj1KiMvckJG8+QcJ9uf6boR4/zVfaeuElwOCyfSwzEzGOSy5dXhF7Z5jU9Qx9YgKX9yNHd8F1s0793UomOCCmntzK+TxUUJh3OQYXkcHxIBtlmHR4Yf4ypa2TYUAhihJo+wOu+xBz40lZYibFMxypkaNjTmEo5Ofay6wUCY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JJITFKmY; 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="JJITFKmY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CC6F1F00893; Sat, 30 May 2026 18:42:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780166578; bh=1zAeaDTexOksIJ0jKJUA1LJTBamqNET+xIFHolTnYLM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=JJITFKmYwjkFbrQJaI5om8PmU69ZN/UWxveJbsI6p1ngmSedFSSiMhTwzRwuCjmX8 iGYYcjurdVBZhBPfeuI9DgotMX1bs605Gl42MZYGvCkJpuQaXBQXumDRtacoxyiVK4 3nB5DVkcHkWYIyvFHyMqhLEox8DvWLEdnIS3HK70= 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 5.10 408/589] lib/hexdump: print_hex_dump_bytes() calls print_hex_dump_debug() Date: Sat, 30 May 2026 18:04:49 +0200 Message-ID: <20260530160235.488871339@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530160224.570625122@linuxfoundation.org> References: <20260530160224.570625122@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 5.10-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 344f6da3d4c36..c3f1f7be301db 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h @@ -609,7 +609,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 @@ -617,7 +618,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) \ -- 2.53.0