|
13 | 13 | #ifndef _JFFS2_DEBUG_H_ |
14 | 14 | #define _JFFS2_DEBUG_H_ |
15 | 15 |
|
| 16 | +#include <linux/printk.h> |
16 | 17 | #include <linux/sched.h> |
17 | 18 |
|
18 | 19 | #ifndef CONFIG_JFFS2_FS_DEBUG |
@@ -99,73 +100,73 @@ do { \ |
99 | 100 | #ifdef JFFS2_DBG_READINODE_MESSAGES |
100 | 101 | #define dbg_readinode(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) |
101 | 102 | #else |
102 | | -#define dbg_readinode(fmt, ...) |
| 103 | +#define dbg_readinode(fmt, ...) no_printk(fmt, ##__VA_ARGS__) |
103 | 104 | #endif |
104 | 105 | #ifdef JFFS2_DBG_READINODE2_MESSAGES |
105 | 106 | #define dbg_readinode2(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) |
106 | 107 | #else |
107 | | -#define dbg_readinode2(fmt, ...) |
| 108 | +#define dbg_readinode2(fmt, ...) no_printk(fmt, ##__VA_ARGS__) |
108 | 109 | #endif |
109 | 110 |
|
110 | 111 | /* Fragtree build debugging messages */ |
111 | 112 | #ifdef JFFS2_DBG_FRAGTREE_MESSAGES |
112 | 113 | #define dbg_fragtree(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) |
113 | 114 | #else |
114 | | -#define dbg_fragtree(fmt, ...) |
| 115 | +#define dbg_fragtree(fmt, ...) no_printk(fmt, ##__VA_ARGS__) |
115 | 116 | #endif |
116 | 117 | #ifdef JFFS2_DBG_FRAGTREE2_MESSAGES |
117 | 118 | #define dbg_fragtree2(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) |
118 | 119 | #else |
119 | | -#define dbg_fragtree2(fmt, ...) |
| 120 | +#define dbg_fragtree2(fmt, ...) no_printk(fmt, ##__VA_ARGS__) |
120 | 121 | #endif |
121 | 122 |
|
122 | 123 | /* Directory entry list manilulation debugging messages */ |
123 | 124 | #ifdef JFFS2_DBG_DENTLIST_MESSAGES |
124 | 125 | #define dbg_dentlist(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) |
125 | 126 | #else |
126 | | -#define dbg_dentlist(fmt, ...) |
| 127 | +#define dbg_dentlist(fmt, ...) no_printk(fmt, ##__VA_ARGS__) |
127 | 128 | #endif |
128 | 129 |
|
129 | 130 | /* Print the messages about manipulating node_refs */ |
130 | 131 | #ifdef JFFS2_DBG_NODEREF_MESSAGES |
131 | 132 | #define dbg_noderef(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) |
132 | 133 | #else |
133 | | -#define dbg_noderef(fmt, ...) |
| 134 | +#define dbg_noderef(fmt, ...) no_printk(fmt, ##__VA_ARGS__) |
134 | 135 | #endif |
135 | 136 |
|
136 | 137 | /* Manipulations with the list of inodes (JFFS2 inocache) */ |
137 | 138 | #ifdef JFFS2_DBG_INOCACHE_MESSAGES |
138 | 139 | #define dbg_inocache(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) |
139 | 140 | #else |
140 | | -#define dbg_inocache(fmt, ...) |
| 141 | +#define dbg_inocache(fmt, ...) no_printk(fmt, ##__VA_ARGS__) |
141 | 142 | #endif |
142 | 143 |
|
143 | 144 | /* Summary debugging messages */ |
144 | 145 | #ifdef JFFS2_DBG_SUMMARY_MESSAGES |
145 | 146 | #define dbg_summary(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) |
146 | 147 | #else |
147 | | -#define dbg_summary(fmt, ...) |
| 148 | +#define dbg_summary(fmt, ...) no_printk(fmt, ##__VA_ARGS__) |
148 | 149 | #endif |
149 | 150 |
|
150 | 151 | /* File system build messages */ |
151 | 152 | #ifdef JFFS2_DBG_FSBUILD_MESSAGES |
152 | 153 | #define dbg_fsbuild(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) |
153 | 154 | #else |
154 | | -#define dbg_fsbuild(fmt, ...) |
| 155 | +#define dbg_fsbuild(fmt, ...) no_printk(fmt, ##__VA_ARGS__) |
155 | 156 | #endif |
156 | 157 |
|
157 | 158 | /* Watch the object allocations */ |
158 | 159 | #ifdef JFFS2_DBG_MEMALLOC_MESSAGES |
159 | 160 | #define dbg_memalloc(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) |
160 | 161 | #else |
161 | | -#define dbg_memalloc(fmt, ...) |
| 162 | +#define dbg_memalloc(fmt, ...) no_printk(fmt, ##__VA_ARGS__) |
162 | 163 | #endif |
163 | 164 |
|
164 | 165 | /* Watch the XATTR subsystem */ |
165 | 166 | #ifdef JFFS2_DBG_XATTR_MESSAGES |
166 | 167 | #define dbg_xattr(fmt, ...) JFFS2_DEBUG(fmt, ##__VA_ARGS__) |
167 | 168 | #else |
168 | | -#define dbg_xattr(fmt, ...) |
| 169 | +#define dbg_xattr(fmt, ...) no_printk(fmt, ##__VA_ARGS__) |
169 | 170 | #endif |
170 | 171 |
|
171 | 172 | /* "Sanity" checks */ |
|
0 commit comments