Skip to content

Commit db50d20

Browse files
namhyungjankara
authored andcommitted
ext3: Fix debug messages in ext3_group_extend()
Fix a typo, break long lines and use E3FSBLK on ext3_fsblk_t. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
1 parent e4d5e3a commit db50d20

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

‎fs/ext3/resize.c‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -977,15 +977,16 @@ int ext3_group_extend(struct super_block *sb, struct ext3_super_block *es,
977977
o_blocks_count = le32_to_cpu(es->s_blocks_count);
978978

979979
if (test_opt(sb, DEBUG))
980-
printk(KERN_DEBUG "EXT3-fs: extending last group from "E3FSBLK" uto "E3FSBLK" blocks\n",
980+
printk(KERN_DEBUG "EXT3-fs: extending last group from "E3FSBLK
981+
" upto "E3FSBLK" blocks\n",
981982
o_blocks_count, n_blocks_count);
982983

983984
if (n_blocks_count == 0 || n_blocks_count == o_blocks_count)
984985
return 0;
985986

986987
if (n_blocks_count > (sector_t)(~0ULL) >> (sb->s_blocksize_bits - 9)) {
987988
printk(KERN_ERR "EXT3-fs: filesystem on %s:"
988-
" too large to resize to %lu blocks safely\n",
989+
" too large to resize to "E3FSBLK" blocks safely\n",
989990
sb->s_id, n_blocks_count);
990991
if (sizeof(sector_t) < 8)
991992
ext3_warning(sb, __func__,
@@ -1065,11 +1066,11 @@ int ext3_group_extend(struct super_block *sb, struct ext3_super_block *es,
10651066
es->s_blocks_count = cpu_to_le32(o_blocks_count + add);
10661067
ext3_journal_dirty_metadata(handle, EXT3_SB(sb)->s_sbh);
10671068
mutex_unlock(&EXT3_SB(sb)->s_resize_lock);
1068-
ext3_debug("freeing blocks %lu through "E3FSBLK"\n", o_blocks_count,
1069-
o_blocks_count + add);
1069+
ext3_debug("freeing blocks "E3FSBLK" through "E3FSBLK"\n",
1070+
o_blocks_count, o_blocks_count + add);
10701071
ext3_free_blocks_sb(handle, sb, o_blocks_count, add, &freed_blocks);
1071-
ext3_debug("freed blocks "E3FSBLK" through "E3FSBLK"\n", o_blocks_count,
1072-
o_blocks_count + add);
1072+
ext3_debug("freed blocks "E3FSBLK" through "E3FSBLK"\n",
1073+
o_blocks_count, o_blocks_count + add);
10731074
if ((err = ext3_journal_stop(handle)))
10741075
goto exit_put;
10751076
if (test_opt(sb, DEBUG))

0 commit comments

Comments
 (0)