mtd/fs/jffs3 debug.h,1.5,1.6
Artem Bityuckiy
dedekind at infradead.org
Fri Dec 17 10:04:42 EST 2004
Update of /home/cvs/mtd/fs/jffs3
In directory phoenix.infradead.org:/tmp/cvs-serv15506
Modified Files:
debug.h
Log Message:
Add ERRASE output macros.
Index: debug.h
===================================================================
RCS file: /home/cvs/mtd/fs/jffs3/debug.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- debug.h 17 Dec 2004 13:38:31 -0000 1.5
+++ debug.h 17 Dec 2004 15:04:39 -0000 1.6
@@ -28,6 +28,7 @@
#define JFFS3_DBG_SCAN 2 /* Flash scan */
#define JFFS3_DBG_GC 3 /* Garbage Collector */
#define JFFS3_DBG_WBUF 4 /* Write buffer */
+#define JFFS3_DBG_ERASE 5 /* Block erase */
#if CONFIG_JFFS3_FS_DEBUG > 0
#define JFFS3_DBG_PARANOIA_CHECKS 1
@@ -36,11 +37,13 @@
#define JFFS3_DBG_SUBSYS_SCAN_PRINT 1
#define JFFS3_DBG_SUBSYS_GC_PRINT 1
#define JFFS3_DBG_SUBSYS_WBUF_PRINT 1
+#define JFFS3_DBG_SUBSYS_ERASE_PRINT 1
#else
#define JFFS3_DBG_SUBSYS_OTHER_PRINT 0
#define JFFS3_DBG_SUBSYS_SCAN_PRINT 0
#define JFFS3_DBG_SUBSYS_GC_PRINT 0
#define JFFS3_DBG_SUBSYS_WBUF_PRINT 0
+#define JFFS3_DBG_SUBSYS_ERASE_PRINT 0
#endif
/*
@@ -53,6 +56,10 @@
char *subsysname = NULL; \
if ((debug_level) >= CONFIG_JFFS3_FS_DEBUG) { \
switch (subsystem) { \
+ case JFFS3_DBG_ERASE: \
+ if (JFFS3_DBG_SUBSYS_ERASE_PRINT) \
+ subsysname = "erase"; \
+ break; \
case JFFS3_DBG_SCAN: \
if (JFFS3_DBG_SUBSYS_SCAN_PRINT) \
subsysname = "scan"; \
@@ -94,6 +101,9 @@
#define DBG_WBUF(debug_level, args...) \
JFFS3DBG_SUBSYSTEM(JFFS3_DBG_WBUF, debug_level, args)
+#define DBG_ERASE(debug_level, args...) \
+ JFFS3DBG_SUBSYSTEM(JFFS3_DBG_ERASE, debug_level, args)
+
#define ERROR_MSG(args...) \
do { \
printk(KERN_ERR "[JFFS3] Error in %s(): ", __FUNCTION__); \
More information about the linux-mtd-cvs
mailing list