linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ext4 missing newlines
@ 2008-10-16  7:26 Eric Sesterhenn
  2008-10-16 14:48 ` Theodore Tso
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Sesterhenn @ 2008-10-16  7:26 UTC (permalink / raw)
  To: tytso, adilger; +Cc: linux-ext4

hi,

there are some newlines missing in ext4_check_descriptors, which
cause the printk level to be printed out when the next printk call
is made:

[  778.847265] EXT4-fs: ext4_check_descriptors: Block bitmap for group 0
not in group (block 1509949442)!<3>EXT4-fs: group descriptors corrupted!
[  802.646630] EXT4-fs: ext4_check_descriptors: Inode bitmap for group 0
not in group (block 9043971)!<3>EXT4-fs: group descriptors corrupted!

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>

--- linux/fs/ext4/super.c.orig	2008-10-16 09:19:19.000000000 +0200
+++ linux/fs/ext4/super.c	2008-10-16 09:19:50.000000000 +0200
@@ -1618,14 +1618,14 @@ static int ext4_check_descriptors(struct
 		if (block_bitmap < first_block || block_bitmap > last_block) {
 			printk(KERN_ERR "EXT4-fs: ext4_check_descriptors: "
 			       "Block bitmap for group %lu not in group "
-			       "(block %llu)!", i, block_bitmap);
+			       "(block %llu)!\n", i, block_bitmap);
 			return 0;
 		}
 		inode_bitmap = ext4_inode_bitmap(sb, gdp);
 		if (inode_bitmap < first_block || inode_bitmap > last_block) {
 			printk(KERN_ERR "EXT4-fs: ext4_check_descriptors: "
 			       "Inode bitmap for group %lu not in group "
-			       "(block %llu)!", i, inode_bitmap);
+			       "(block %llu)!\n", i, inode_bitmap);
 			return 0;
 		}
 		inode_table = ext4_inode_table(sb, gdp);
@@ -1633,7 +1633,7 @@ static int ext4_check_descriptors(struct
 		    inode_table + sbi->s_itb_per_group - 1 > last_block) {
 			printk(KERN_ERR "EXT4-fs: ext4_check_descriptors: "
 			       "Inode table for group %lu not in group "
-			       "(block %llu)!", i, inode_table);
+			       "(block %llu)!\n", i, inode_table);
 			return 0;
 		}
 		spin_lock(sb_bgl_lock(sbi, i));

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ext4 missing newlines
  2008-10-16  7:26 [PATCH] ext4 missing newlines Eric Sesterhenn
@ 2008-10-16 14:48 ` Theodore Tso
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Tso @ 2008-10-16 14:48 UTC (permalink / raw)
  To: Eric Sesterhenn; +Cc: adilger, linux-ext4

On Thu, Oct 16, 2008 at 09:26:14AM +0200, Eric Sesterhenn wrote:
> 
> there are some newlines missing in ext4_check_descriptors, which
> cause the printk level to be printed out when the next printk call
> is made:

Thanks for the patch; I've added it to the ext4 patch queue.

       	       	      	   	       	   - Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-16 14:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-16  7:26 [PATCH] ext4 missing newlines Eric Sesterhenn
2008-10-16 14:48 ` Theodore Tso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).