From patchwork Mon Dec 22 11:56:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1050 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404666; bh=uBLJF2q0IfVpkEchTdxsy+UuzvlAtgJsMHCACwvnJ0M=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=L9P91YNgGzYkCbvRRg7uGd3mTfXB3NiRL99Yf9v4EV/q0YhZQkUPBvpJyRZblzGsP j2654tI6LDAKFFKNA7ZGm7P/mHqlWjXUYqEIf1fpIo8A2QOGYDsDDM2Tva+5zUcSHR mE1dgU2MTRBgYEXtHbpy1IRhBpXZORJe1d6rmlH7QR6u4N0Aau9167Q9xGITNR189m EtTOHy8LIIlBSIfH5SyyL1W9HHkzColiDUbWFEgbFacSu5a2THmIF1PTgi1baUX9Lq AYgvebAtGk7lv0O7TjSZ3skDsKv50yM2Kje4eaysl7HjjILIrgT1YaBTc4szdihxC0 skrTWm/27sndQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 422EC64C31 for ; Mon, 22 Dec 2025 04:57:46 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id HoEErhQsAeRm for ; Mon, 22 Dec 2025 04:57:46 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404664; bh=uBLJF2q0IfVpkEchTdxsy+UuzvlAtgJsMHCACwvnJ0M=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=dHU3GKq4Mx3QetoutHFsHSxS/bfgu6FVOIPmDCXw9mZfQcfeowN2JZzk1F8LPDTUC dYmyDIeJdfloN4pVaC57OhYb84AKUf2m0+ujkndrMfQLRkagYyvciDMgWtM72KwIE5 haSyyYX1uKOqWTLsdV+iN+F7phg+1BGc+WvwyYlnEzxL06+5I6m4+pzazL8jkOSFJQ c4XnEOXjkDhgoVs60QNtic0SmLnRLJ/A/oqydlzX7EUTlhTWK3HnbaM7JyScfQfjYK 99cP6VIhEazFu3zFIfk1Lb8bs/0RS8WdbtH8mPsxfQtbsXmEqpGdKCXT90YowBM2Y2 6SQYVPYsVO45w== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C8F5364D80 for ; Mon, 22 Dec 2025 04:57:44 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404662; bh=3kza/BzyOJadaYt6QUeXw+xRJQhKVtgrVix8EK6fRoo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TRCjm/2OSfoREMOTfo/paL4I9ILFfcCuBMBP17nk3mQFWZ59V1qBiLxPZ11G9LJZ9 zBg3U6R9wcxdCwhotubfGJ4hfu9liVXZ2NUIwTPjk4aXGAUmrpyp2Umh3olgHvxVne JfpgHKQhZUT2WJRTHxaj1J3TcXxnGxxvVI8BnZWaA0R2QJyuXXGf5yQp4sEH46E9sQ n3WSQFtVC9j0ggq1hMrSa7aYYAyfV9UvF9YMFqK3tOjN+BzVy6fPKLo9i/ps+Jx7Au Nju2N5jnOscud1K66IT3+F9S/+A/d3O9dxkMhqmLuiklHJ2Jwx+CyGlb7dqykMh9bL ckXQGB0MjcQ7w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A54B964CCE; Mon, 22 Dec 2025 04:57:42 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id MNj1Q50SeYRl; Mon, 22 Dec 2025 04:57:42 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404662; bh=GLLrDQeXQidR/eh39mHUCL9q0IHynSYcVttQ53iX+64=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MrG2pf69omWV220Gmt4+o+EoVjfhQK+KkF0ZRQreBrxOGmz+cEbmgj3oBR0248/NE gxBOBW9kjJb/jo6fwogDpX88AcjN3fKo32J2d+ANMAZ8ThYvHl3JJPNhVnBATxW4nh hT7Zqrg+uftieZ01tp+aXyEvIbI1/CP5VEEnuPQV3ls7/eQ0w0uZongQYtTCTIldg5 N0qe/lHWq6NPpLvZd3gWjL5QqJDPRVYe6GAI9RcMPkzHY6CPFLUsrJ6LPhSKTRylCE 1DJ7Tl8pkTqWPzitCKtsZe39XgmEugUA6Z0U3uKqEiq3DOpuglSKK6/ppv5+eMe0VY lsQqFsYbmKbdg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 2B00E5FB5A; Mon, 22 Dec 2025 04:57:42 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 22 Dec 2025 04:56:24 -0700 Message-ID: <20251222115639.700578-21-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251222115639.700578-1-sjg@u-boot.org> References: <20251222115639.700578-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: VJQQKHVXBSLSHNKGF3VYGRMWGYRRKPBY X-Message-ID-Hash: VJQQKHVXBSLSHNKGF3VYGRMWGYRRKPBY X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 20/26] fs: ext4l: Add CONFIG_EXT4L_DEBUG to control messages List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Add a Kconfig option to control ext4_msg() output. By default, mount messages and other informational output are suppressed to reduce console noise. Enable CONFIG_EXT4L_DEBUG to restore these messages for debugging. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/Kconfig | 9 +++++++++ fs/ext4l/super.c | 3 +++ 2 files changed, 12 insertions(+) diff --git a/fs/ext4l/Kconfig b/fs/ext4l/Kconfig index f1fbe3b1000..998f0f45474 100644 --- a/fs/ext4l/Kconfig +++ b/fs/ext4l/Kconfig @@ -22,3 +22,12 @@ config EXT4_JOURNAL before committing them to the filesystem. If unsure, say Y. + +config EXT4L_DEBUG + bool "Enable ext4l debug messages" + depends on FS_EXT4L + help + Enable debug and informational messages from the ext4l filesystem. + This includes mount messages and other ext4_msg() output. + + If unsure, say N. diff --git a/fs/ext4l/super.c b/fs/ext4l/super.c index f986ca6e0b6..47e0b2c92e8 100644 --- a/fs/ext4l/super.c +++ b/fs/ext4l/super.c @@ -946,6 +946,9 @@ void __ext4_msg(struct super_block *sb, struct va_format vaf; va_list args; + if (!IS_ENABLED(CONFIG_EXT4L_DEBUG)) + return; + if (sb) { atomic_inc(&EXT4_SB(sb)->s_msg_count); if (!___ratelimit(&(EXT4_SB(sb)->s_msg_ratelimit_state),