Skip to contentSkip to conversation

ocfs2: Remove space before newline

PATCH In review Colin Ian King 2 participants 2 messages Jul 29, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ocfs2: Remove space before newline

There is an extraneous space before a newline in a mlog error message. Remove it

---
 fs/ocfs2/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/super.c +1 -1
index a4f5a868bec1..4b3ea721395c 100644
@@ -2108,7 +2108,7 @@ static int ocfs2_initialize_super(struct super_block *sb,
 		if (strlen(osb->osb_cluster_stack) != OCFS2_STACK_LABEL_LEN) {
 			mlog(ML_ERROR,
 			     "couldn't mount because of an invalid "
-			     "cluster stack label (%s) \n",
+			     "cluster stack label (%s)\n",
 			     osb->osb_cluster_stack);
 			status = -EINVAL;
 			goto out_orphan_wipes;
Signature · 1 line
2.50.0
#1 lore raw

…

Quoted 1 line

Remove it

Thus delete a redundant character.?

…

fs/ocfs2/super.c static int ocfs2_initialize_super(struct super_block *sb, · line 2112

Quoted 8 lines

+++ b/fs/ocfs2/super.c

fs/ocfs2/super.c +1 -1
@@ -2108,7 +2108,7 @@ static int ocfs2_initialize_super(struct super_block *sb,
 		if (strlen(osb->osb_cluster_stack) != OCFS2_STACK_LABEL_LEN) {
 			mlog(ML_ERROR,
 			     "couldn't mount because of an invalid "
-			     "cluster stack label (%s) \n",
+			     "cluster stack label (%s)\n",
 			     osb->osb_cluster_stack);

…

You may recombine such string literals.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v6.16#n116

Regards,
Markus