* [PATCH] fscrypt: Remove extra newlines from log messages
@ 2026-12-04 8:50 Eric Biggers
0 siblings, 0 replies; only message in thread
From: Eric Biggers @ 2026-12-04 8:50 UTC (permalink / raw)
To: linux-fscrypt; +Cc: Eric Biggers
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-04 8:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 8:50 [PATCH] fscrypt: Remove extra newlines from log messages Eric Biggers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox