[Patch 2/10]: ext3 online resize: printk debug level
From: Stephen Tweedie (sct_at_redhat.com)
Date: 09/30/04
- Previous message: Stephen Tweedie: "[Patch 3/10]: ext3 online resize: fix bh leak"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 14:23:24 +0100 To: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>, Andreas Dilger <adilger@clusterfs.com>, "Theodore Ts'o" <tytso@mit.edu>, ext2-devel@lists.sourceforge.net
Emit debugging printks at KERN_DEBUG loglevel.
Signed-off-by: Stephen Tweedie <sct@redhat.com>
--- linux-2.6.9-rc2-mm4/fs/ext3/resize.c.=K0001=.orig
+++ linux-2.6.9-rc2-mm4/fs/ext3/resize.c
@@ -44,7 +44,7 @@ static int verify_group_input(struct sup
input->blocks_count - 2 - overhead - sbi->s_itb_per_group;
if (test_opt(sb, DEBUG))
- printk("EXT3-fs: adding %s group %u: %u blocks "
+ printk(KERN_DEBUG "EXT3-fs: adding %s group %u: %u blocks "
"(%d free, %u reserved)\n",
ext3_bg_has_super(sb, input->group) ? "normal" :
"no-super", input->group, input->blocks_count,
@@ -373,7 +373,8 @@ static int add_new_gdb(handle_t *handle,
int err;
if (test_opt(sb, DEBUG))
- printk("EXT3-fs: ext3_add_new_gdb: adding group block %lu\n",
+ printk(KERN_DEBUG
+ "EXT3-fs: ext3_add_new_gdb: adding group block %lu\n",
gdb_num);
/*
@@ -851,7 +852,7 @@ int ext3_group_extend(struct super_block
o_groups_count = EXT3_SB(sb)->s_groups_count;
if (test_opt(sb, DEBUG))
- printk("EXT3-fs: extending last group from %lu to %lu blocks\n",
+ printk(KERN_DEBUG "EXT3-fs: extending last group from %lu to %lu blocks\n",
o_blocks_count, n_blocks_count);
if (n_blocks_count == 0 || n_blocks_count == o_blocks_count)
@@ -940,7 +941,7 @@ int ext3_group_extend(struct super_block
if ((err = ext3_journal_stop(handle)))
goto exit_put;
if (test_opt(sb, DEBUG))
- printk("EXT3-fs: extended group to %u blocks\n",
+ printk(KERN_DEBUG "EXT3-fs: extended group to %u blocks\n",
le32_to_cpu(es->s_blocks_count));
update_backups(sb, inode, EXT3_SB(sb)->s_sbh->b_blocknr, (char *)es,
sizeof(struct ext3_super_block));
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Stephen Tweedie: "[Patch 3/10]: ext3 online resize: fix bh leak"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: [PATCH] bio.c: reduce verbosity at boot
... >>time info seems bad to me. ... except I was thinking for loglevel
rather than size. ... suggesting this thinking it'd be an easy addition to the dmesg store.
... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: [PATCH][2.6-mm] Make i386 boot not so chatty
... > to be turned on by using the 'debug' kernel parameter. ... /* printk's
without a loglevel use this.. ... send the line "unsubscribe linux-kernel" in ...
(Linux-Kernel) - Re: [PATCH] config option for default loglevel
... > I've created a little patch to make the default loglevel a configurable ...
It'd be better to make it a kernel boot option, ... option to set the initial loglevel
would make sense. ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - netconsole lockup with current kernel 2.6.13-rc6-git3
... girgendwas:~ # netconsole-server boettger:12346 ... SysRq: Changing Loglevel
... Will check if older kernels work ok, it does at least work in SLES9 ... send
the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: printk loglevel policy?
... On Gwe, 2004-12-31 at 02:20, Coywolf Qi Hunt wrote: ... I've seen a lot of add
loglevel to printk patches. ... send the line "unsubscribe linux-kernel"
in ... (Linux-Kernel)