[JFFS2] Debug code clean up - step 2

If debugging is disabled, define debugging functions as empty macros, instead
of using Dx() explicitly.

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
这个提交包含在:
Artem B. Bityutskiy
2005-07-17 13:01:46 +01:00
提交者 Thomas Gleixner
父节点 2b79adcca1
当前提交 61a39b6941
修改 5 个文件,包含 13 行新增13 行删除

查看文件

@@ -9,7 +9,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: wbuf.c,v 1.93 2005/07/17 06:56:21 dedekind Exp $
* $Id: wbuf.c,v 1.94 2005/07/17 12:01:43 dedekind Exp $
*
*/
@@ -139,7 +139,7 @@ static void jffs2_block_refile(struct jffs2_sb_info *c, struct jffs2_eraseblock
{
D1(printk("About to refile bad block at %08x\n", jeb->offset));
D2(jffs2_dbg_dump_block_lists(c));
jffs2_dbg_dump_block_lists(c);
/* File the existing block on the bad_used_list.... */
if (c->nextblock == jeb)
c->nextblock = NULL;
@@ -156,7 +156,7 @@ static void jffs2_block_refile(struct jffs2_sb_info *c, struct jffs2_eraseblock
c->nr_erasing_blocks++;
jffs2_erase_pending_trigger(c);
}
D2(jffs2_dbg_dump_block_lists(c));
jffs2_dbg_dump_block_lists(c);
/* Adjust its size counts accordingly */
c->wasted_size += jeb->free_size;