public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [JFFS2] Cleanup the debugging stuff
@ 2005-07-17 10:10 Thomas Gleixner
  2005-07-17 10:30 ` Artem B. Bityuckiy
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Gleixner @ 2005-07-17 10:10 UTC (permalink / raw)
  To: Artem B. Bityuckiy; +Cc: MTD

> Move most of debugging-related JFFS2 stuff to debug.c and debug.h. It is much
> tidier then the previous approach. Preserve dwmw2's favourite D1() - I would
> like to clean-up them as well, but do not dare. :-)
> 

Why not ? I prefer a coherent cleanup over some halfarsed attempt.

>  	D1(printk(KERN_DEBUG "Scanned flash completely\n"));

Whats wrong with 

jffs2_dbg1_msg("Scanned flash completely\n"); ?

All those D1 messages should have KERN_DEBUG syslog level, so its simple
to wrap them nicely.

> -	D2(jffs2_dump_block_lists(c));
> +	D2(jffs2_dbg_dump_block_lists(c));

Why D2() here ? jffs2_dbg2_dump_block_lists(c) removes D2() and provides
a quick association to the debug level.

tglx

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

end of thread, other threads:[~2005-07-17 10:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-17 10:10 [JFFS2] Cleanup the debugging stuff Thomas Gleixner
2005-07-17 10:30 ` Artem B. Bityuckiy
2005-07-17 10:47   ` Thomas Gleixner
2005-07-17 10:51     ` Artem B. Bityuckiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox