* [PATCH] ext4: fix the code style from printk to ext_debug in extents.c
@ 2012-05-12 15:57 Steven Liu
2012-05-13 4:20 ` Ted Ts'o
0 siblings, 1 reply; 3+ messages in thread
From: Steven Liu @ 2012-05-12 15:57 UTC (permalink / raw)
To: linux-ext4; +Cc: tytso, linux-fsdevel, linux-kernel
Hi Ted,
just fix the printk debug to ext_debug, if undefined the EXT_DEBUG
it will not output the debug message
Signed-off-by: LiuQi <liuqi@zecloud.cn>
---
fs/ext4/extents.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index abcdeab..211e230 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -548,10 +548,10 @@ ext4_ext_binsearch_idx(struct inode *inode,
for (k = 0; k < le16_to_cpu(eh->eh_entries); k++, ix++) {
if (k != 0 &&
le32_to_cpu(ix->ei_block) <= le32_to_cpu(ix[-1].ei_block)) {
- printk(KERN_DEBUG "k=%d, ix=0x%p, "
+ ext_debug("k=%d, ix=0x%p, "
"first=0x%p\n", k,
ix, EXT_FIRST_INDEX(eh));
- printk(KERN_DEBUG "%u <= %u\n",
+ ext_debug("%u <= %u\n",
le32_to_cpu(ix->ei_block),
le32_to_cpu(ix[-1].ei_block));
}
--
1.7.1
Best Regards
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] ext4: fix the code style from printk to ext_debug in extents.c
2012-05-12 15:57 [PATCH] ext4: fix the code style from printk to ext_debug in extents.c Steven Liu
@ 2012-05-13 4:20 ` Ted Ts'o
2012-05-13 14:38 ` Steven Liu
0 siblings, 1 reply; 3+ messages in thread
From: Ted Ts'o @ 2012-05-13 4:20 UTC (permalink / raw)
To: Steven Liu; +Cc: linux-ext4
On Sat, May 12, 2012 at 11:57:13PM +0800, Steven Liu wrote:
> Hi Ted,
>
> just fix the printk debug to ext_debug, if undefined the EXT_DEBUG
> it will not output the debug message
>
> Signed-off-by: LiuQi <liuqi@zecloud.cn>
I'm not sure what's the point? The code in question is all under a
CHECK_BINSEARCH, which is in itself a debugging option.
- Ted
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ext4: fix the code style from printk to ext_debug in extents.c
2012-05-13 4:20 ` Ted Ts'o
@ 2012-05-13 14:38 ` Steven Liu
0 siblings, 0 replies; 3+ messages in thread
From: Steven Liu @ 2012-05-13 14:38 UTC (permalink / raw)
To: Ted Ts'o; +Cc: linux-ext4
Hi ,
You mean ,if open the CHECK_BINSEARCH, it must output the message
which I have changed code?
Thanks
2012/5/13 Ted Ts'o <tytso@mit.edu>:
> On Sat, May 12, 2012 at 11:57:13PM +0800, Steven Liu wrote:
>> Hi Ted,
>>
>> just fix the printk debug to ext_debug, if undefined the EXT_DEBUG
>> it will not output the debug message
>>
>> Signed-off-by: LiuQi <liuqi@zecloud.cn>
>
> I'm not sure what's the point? The code in question is all under a
> CHECK_BINSEARCH, which is in itself a debugging option.
>
> - Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-13 14:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-12 15:57 [PATCH] ext4: fix the code style from printk to ext_debug in extents.c Steven Liu
2012-05-13 4:20 ` Ted Ts'o
2012-05-13 14:38 ` Steven Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox