diff options
author | Artem B. Bityutskiy <dedekind@infradead.org> | 2005-07-27 10:16:57 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-11-06 11:34:21 -0500 |
commit | f538c96ba2a3fdf7744ecf9fdffac14b1ec4be32 (patch) | |
tree | f6c2bcb42d1f6869097ea6cbbde94a677cb970d3 /fs/jffs2/debug.h | |
parent | 2227c0ba4bc177a014d95b380b4d888454a127a9 (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.h | 16 |
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 */ |
137 | void | 145 | void |
138 | __jffs2_dbg_fragtree_paranoia_check(struct jffs2_inode_info *f); | 146 | __jffs2_dbg_fragtree_paranoia_check(struct jffs2_inode_info *f); |