[JFFS2] Refine fragtree debug macros

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Artem B. Bityutskiy 2005-07-31 10:08:41 +01:00 committed by Thomas Gleixner
parent 1e900979a7
commit e0e3006f79

View File

@ -7,7 +7,7 @@
* *
* For licensing information, see the file 'LICENCE' in this directory. * For licensing information, see the file 'LICENCE' in this directory.
* *
* $Id: debug.h,v 1.7 2005/07/27 13:06:56 dedekind Exp $ * $Id: debug.h,v 1.8 2005/07/31 09:08:38 dedekind Exp $
* *
*/ */
#ifndef _JFFS2_DEBUG_H_ #ifndef _JFFS2_DEBUG_H_
@ -106,6 +106,11 @@
#else #else
#define JFFS2_DBG_FRAGTREE(fmt, ...) #define JFFS2_DBG_FRAGTREE(fmt, ...)
#endif #endif
#ifdef JFFS2_DBG_FRAGTREE2_MESSAGES
#define JFFS2_DBG_FRAGTREE2(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define JFFS2_DBG_FRAGTREE2(fmt, ...)
#endif
/* Directory entry list manilulation debugging messages */ /* Directory entry list manilulation debugging messages */
#ifdef JFFS2_DBG_DENTLIST_MESSAGES #ifdef JFFS2_DBG_DENTLIST_MESSAGES
@ -113,11 +118,6 @@
#else #else
#define JFFS2_DBG_DENTLIST(fmt, ...) #define JFFS2_DBG_DENTLIST(fmt, ...)
#endif #endif
#ifdef JFFS2_DBG_FRAGTREE2_MESSAGES
#define JFFS2_DBG_FRAGTREE2(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define JFFS2_DBG_FRAGTREE2(fmt, ...)
#endif
/* Print the messages about manipulating node_refs */ /* Print the messages about manipulating node_refs */
#ifdef JFFS2_DBG_NODEREF_MESSAGES #ifdef JFFS2_DBG_NODEREF_MESSAGES