All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: linux-fscrypt@vger.kernel.org
Cc: Eric Biggers <ebiggers@kernel.org>
Subject: [PATCH] fscrypt: Remove extra newlines from log messages
Date: Fri,  4 Dec 2026 00:50:58 -0800	[thread overview]
Message-ID: <20261204085058.51420-1-ebiggers@kernel.org> (raw)

The calls to fscrypt_warn() in fscrypt_derive_sw_secret() pass a format
string ending with a newline.  Since fscrypt_msg() already appends a
newline, this causes extra blank lines in the kernel log.  Remove them.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
---
 fs/crypto/block.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/crypto/block.c b/fs/crypto/block.c
index 5193f8ba3ee09..aa0f33d79148d 100644
--- a/fs/crypto/block.c
+++ b/fs/crypto/block.c
@@ -180,7 +180,7 @@ int fscrypt_derive_sw_secret(struct super_block *sb,
 	/* The filesystem must be mounted with -o inlinecrypt. */
 	if (!(sb->s_flags & SB_INLINECRYPT)) {
 		fscrypt_warn(NULL,
-			     "%s: filesystem not mounted with inlinecrypt\n",
+			     "%s: filesystem not mounted with inlinecrypt",
 			     sb->s_id);
 		return -EOPNOTSUPP;
 	}
@@ -189,7 +189,7 @@ int fscrypt_derive_sw_secret(struct super_block *sb,
 					  wrapped_key_size, sw_secret);
 	if (err == -EOPNOTSUPP)
 		fscrypt_warn(NULL,
-			     "%s: block device doesn't support hardware-wrapped keys\n",
+			     "%s: block device doesn't support hardware-wrapped keys",
 			     sb->s_id);
 	return err;
 }

base-commit: 1928c0add8851741d20ad1e7ca41b0426cfb03fc
-- 
2.56.1


                 reply	other threads:[~2026-12-04  8:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204085058.51420-1-ebiggers@kernel.org \
    --to=ebiggers@kernel.org \
    --cc=linux-fscrypt@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.