Skip to contentSkip to conversation

Add missing printing newlines

PATCH In review Daniel J Blueman 2 participants 2 messages May 7, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add missing printing newlines

Fix BTRFS messages to print a newline where there should be one.

---
 fs/btrfs/super.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
fs/btrfs/super.c +4 -4
index c5f8fca..c99cb72 100644
@@ -216,7 +216,7 @@ void __btrfs_abort_transaction(struct btrfs_trans_handle *trans,
 			       struct btrfs_root *root, const char *function,
 			       unsigned int line, int errno)
 {
-	WARN_ONCE(1, KERN_DEBUG "btrfs: Transaction aborted");
+	WARN_ONCE(1, KERN_DEBUG "btrfs: Transaction aborted\n");
 	trans->aborted = errno;
 	/* Nothing used. The other threads that have joined this
 	 * transaction may be able to continue. */
@@ -511,11 +511,11 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
 			btrfs_set_opt(info->mount_opt, ENOSPC_DEBUG);
 			break;
 		case Opt_defrag:
-			printk(KERN_INFO "btrfs: enabling auto defrag");
+			printk(KERN_INFO "btrfs: enabling auto defrag\n");
 			btrfs_set_opt(info->mount_opt, AUTO_DEFRAG);
 			break;
 		case Opt_recovery:
-			printk(KERN_INFO "btrfs: enabling auto recovery");
+			printk(KERN_INFO "btrfs: enabling auto recovery\n");
 			btrfs_set_opt(info->mount_opt, RECOVERY);
 			break;
 		case Opt_skip_balance:
@@ -1501,7 +1501,7 @@ static int btrfs_interface_init(void)
 static void btrfs_interface_exit(void)
 {
 	if (misc_deregister(&btrfs_misc) < 0)
-		printk(KERN_INFO "misc_deregister failed for control device");
+		printk(KERN_INFO "misc_deregister failed for control device\n");
 }
 
 static int __init init_btrfs_fs(void)
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 1 line · Daniel J Blueman

Fix BTRFS messages to print a newline where there should be one.

Please prefix the patch subject line with 'btrfs: '

fs/btrfs/super.c static int btrfs_interface_init(void) · line 1504

Quoted 8 lines
fs/btrfs/super.c +1 -1
@@ -1501,7 +1501,7 @@ static int btrfs_interface_init(void)
 static void btrfs_interface_exit(void)
 {
 	if (misc_deregister(&btrfs_misc) < 0)
-		printk(KERN_INFO "misc_deregister failed for control device");
+		printk(KERN_INFO "misc_deregister failed for control device\n");
		printk(KERN_INFO "btrfs: misc_deregister failed for control device\n");

and here as well, otherwise ok, thanks.

david