mtd/fs/jffs3 debug.h,1.11,1.12
Artem Bityuckiy
dedekind at infradead.org
Tue Dec 21 10:56:15 EST 2004
Update of /home/cvs/mtd/fs/jffs3
In directory phoenix.infradead.org:/tmp/cvs-serv24788
Modified Files:
debug.h
Log Message:
More subsystems.
Index: debug.h
===================================================================
RCS file: /home/cvs/mtd/fs/jffs3/debug.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- debug.h 21 Dec 2004 15:18:50 -0000 1.11
+++ debug.h 21 Dec 2004 15:56:13 -0000 1.12
@@ -36,6 +36,8 @@
#define JFFS3_DBG_BLD 10 /* File system build (on mount) */
#define JFFS3_DBG_COMPR 11 /* Compression */
#define JFFS3_DBG_SUMMARY 12 /* Summary info */
+#define JFFS3_DBG_RI 13 /* Read inode */
+#define JFFS3_DBG_BI 14 /* Build inode (after reading) */
#if CONFIG_JFFS3_FS_DEBUG > 0
#define JFFS3_DBG_PARANOIA_CHECKS 1
@@ -52,6 +54,8 @@
#define JFFS3_DBG_SUBSYS_BLD_PRINT 1
#define JFFS3_DBG_SUBSYS_COMPR_PRINT 1
#define JFFS3_DBG_SUBSYS_SUMMARY_PRINT 1
+#define JFFS3_DBG_SUBSYS_RI_PRINT 1
+#define JFFS3_DBG_SUBSYS_BI_PRINT 1
#else
#define JFFS3_DBG_SUBSYS_OTHER_PRINT 0
#define JFFS3_DBG_SUBSYS_SCAN_PRINT 0
@@ -65,6 +69,8 @@
#define JFFS3_DBG_SUBSYS_BLD_PRINT 0
#define JFFS3_DBG_SUBSYS_COMPR_PRINT 0
#define JFFS3_DBG_SUBSYS_SUMMARY_PRINT 0
+#define JFFS3_DBG_SUBSYS_RI_PRINT 0
+#define JFFS3_DBG_SUBSYS_BI_PRINT 0
#endif
/*
@@ -77,6 +83,18 @@
char *subsysname = NULL; \
if ((debug_level) >= CONFIG_JFFS3_FS_DEBUG) { \
switch (subsystem) { \
+ case JFFS3_DBG_BI: \
+ if (JFFS3_DBG_SUBSYS_BI_PRINT) \
+ subsysname = "bi"; \
+ break; \
+ case JFFS3_DBG_RI: \
+ if (JFFS3_DBG_SUBSYS_RI_PRINT) \
+ subsysname = "ri"; \
+ break; \
+ case JFFS3_DBG_SUMMARY: \
+ if (JFFS3_DBG_SUBSYS_SUMMARY_PRINT) \
+ subsysname = "summary"; \
+ break; \
case JFFS3_DBG_COMPR: \
if (JFFS3_DBG_SUBSYS_BLD_PRINT) \
subsysname = "compr"; \
@@ -121,10 +139,6 @@
if (JFFS3_DBG_SUBSYS_OTHER_PRINT) \
subsysname = ""; \
break; \
- case JFFS3_DBG_SUMMARY: \
- if (JFFS3_DBG_SUBSYS_SUMMARY_PRINT) \
- subsysname = "Summary"; \
- break; \
default: \
BUG(); \
} \
@@ -176,6 +190,11 @@
#define DBG_SUMMARY(debug_level, args...) \
JFFS3DBG_SUBSYSTEM(JFFS3_DBG_SUMMARY, debug_level, args)
+#define DBG_RI(debug_level, args...) \
+ JFFS3DBG_SUBSYSTEM(JFFS3_DBG_RI, debug_level, args)
+
+#define DBG_BI(debug_level, args...) \
+ JFFS3DBG_SUBSYSTEM(JFFS3_DBG_BI, debug_level, args)
#define ERROR_MSG(args...) \
do { \
More information about the linux-mtd-cvs
mailing list