aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/debug.h
diff options
context:
space:
mode:
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 3c3c2940f272..4d7859712013 100644
--- a/fs/jffs2/debug.h
+++ b/fs/jffs2/debug.h
@@ -7,7 +7,7 @@
7 * 7 *
8 * For licensing information, see the file 'LICENCE' in this directory. 8 * For licensing information, see the file 'LICENCE' in this directory.
9 * 9 *
10 * $Id: debug.h,v 1.6 2005/07/24 15:18:26 dedekind Exp $ 10 * $Id: debug.h,v 1.7 2005/07/27 13:06:56 dedekind Exp $
11 * 11 *
12 */ 12 */
13#ifndef _JFFS2_DEBUG_H_ 13#ifndef _JFFS2_DEBUG_H_
@@ -16,7 +16,7 @@
16#include <linux/config.h> 16#include <linux/config.h>
17 17
18#ifndef CONFIG_JFFS2_FS_DEBUG 18#ifndef CONFIG_JFFS2_FS_DEBUG
19#define CONFIG_JFFS2_FS_DEBUG 1 19#define CONFIG_JFFS2_FS_DEBUG 0
20#endif 20#endif
21 21
22#if CONFIG_JFFS2_FS_DEBUG == 1 22#if CONFIG_JFFS2_FS_DEBUG == 1
@@ -119,20 +119,28 @@
119#define JFFS2_DBG_FRAGTREE2(fmt, ...) 119#define JFFS2_DBG_FRAGTREE2(fmt, ...)
120#endif 120#endif
121 121
122/* Plays with node_refs */ 122/* Print the messages about manipulating node_refs */
123#ifdef JFFS2_DBG_NODEREF_MESSAGES 123#ifdef JFFS2_DBG_NODEREF_MESSAGES
124#define JFFS2_DBG_NODEREF(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) 124#define JFFS2_DBG_NODEREF(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__)
125#else 125#else
126#define JFFS2_DBG_NODEREF(fmt, ...) 126#define JFFS2_DBG_NODEREF(fmt, ...)
127#endif 127#endif
128 128
129/* Plays with the list of inodes (JFFS2 inocache) */ 129/* Manipulations with the list of inodes (JFFS2 inocache) */
130#ifdef JFFS2_DBG_INOCACHE_MESSAGES 130#ifdef JFFS2_DBG_INOCACHE_MESSAGES
131#define JFFS2_DBG_INOCACHE(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) 131#define JFFS2_DBG_INOCACHE(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__)
132#else 132#else
133#define JFFS2_DBG_INOCACHE(fmt, ...) 133#define JFFS2_DBG_INOCACHE(fmt, ...)
134#endif 134#endif
135 135
136/* Watch the object allocations */
137#ifdef JFFS2_DBG_MEMALLOC_MESSAGES
138#define JFFS2_DBG_MEMALLOC(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__)
139#else
140#define JFFS2_DBG_MEMALLOC(fmt, ...)
141#endif
142
143
136/* "Paranoia" checks */ 144/* "Paranoia" checks */
137void 145void
138__jffs2_dbg_fragtree_paranoia_check(struct jffs2_inode_info *f); 146__jffs2_dbg_fragtree_paranoia_check(struct jffs2_inode_info *f);