aboutsummaryrefslogtreecommitdiff
path: root/fs/jffs2/debug.h
diff options
context:
space:
mode:
authorArtem B. Bityutskiy <dedekind@infradead.org>2005-07-27 15:16:57 +0100
committerThomas Gleixner <tglx@mtd.linutronix.de>2005-11-06 17:34:21 +0100
commitf538c96ba2a3fdf7744ecf9fdffac14b1ec4be32 (patch)
treef6c2bcb42d1f6869097ea6cbbde94a677cb970d3 /fs/jffs2/debug.h
parent2227c0ba4bc177a014d95b380b4d888454a127a9 (diff)
[JFFS2] Debug code clean up - step 4
Small comment cleanups. Remove a unused macro Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/jffs2/debug.h')
-rw-r--r--fs/jffs2/debug.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/fs/jffs2/debug.h b/fs/jffs2/debug.h
index 3c3c2940f27..4d785971201 100644
--- a/fs/jffs2/debug.h
+++ b/fs/jffs2/debug.h
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
- * $Id: debug.h,v 1.6 2005/07/24 15:18:26 dedekind Exp $
+ * $Id: debug.h,v 1.7 2005/07/27 13:06:56 dedekind Exp $
*
*/
#ifndef _JFFS2_DEBUG_H_
@@ -16,7 +16,7 @@
#include <linux/config.h>
#ifndef CONFIG_JFFS2_FS_DEBUG
-#define CONFIG_JFFS2_FS_DEBUG 1
+#define CONFIG_JFFS2_FS_DEBUG 0
#endif
#if CONFIG_JFFS2_FS_DEBUG == 1
@@ -119,20 +119,28 @@
#define JFFS2_DBG_FRAGTREE2(fmt, ...)
#endif
-/* Plays with node_refs */
+/* Print the messages about manipulating node_refs */
#ifdef JFFS2_DBG_NODEREF_MESSAGES
#define JFFS2_DBG_NODEREF(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define JFFS2_DBG_NODEREF(fmt, ...)
#endif
-/* Plays with the list of inodes (JFFS2 inocache) */
+/* Manipulations with the list of inodes (JFFS2 inocache) */
#ifdef JFFS2_DBG_INOCACHE_MESSAGES
#define JFFS2_DBG_INOCACHE(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__)
#else
#define JFFS2_DBG_INOCACHE(fmt, ...)
#endif
+/* Watch the object allocations */
+#ifdef JFFS2_DBG_MEMALLOC_MESSAGES
+#define JFFS2_DBG_MEMALLOC(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__)
+#else
+#define JFFS2_DBG_MEMALLOC(fmt, ...)
+#endif
+
+
/* "Paranoia" checks */
void
__jffs2_dbg_fragtree_paranoia_check(struct jffs2_inode_info *f);