mtd: remove CONFIG_MTD_DEBUG

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Nov 7 11:59:28 EST 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=87ed114bb22bc65fce59c709e67599c1940efc7f
Commit:     87ed114bb22bc65fce59c709e67599c1940efc7f
Parent:     e6453521edcaa6f130946b5f4fcaf28dbc02f2ed
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Tue Jul 19 10:06:12 2011 -0700
Committer:  Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:02:16 2011 +0300

    mtd: remove CONFIG_MTD_DEBUG
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at intel.com>
---
 drivers/mtd/Kconfig     |   13 -------------
 include/linux/mtd/mtd.h |   23 -----------------------
 2 files changed, 0 insertions(+), 36 deletions(-)

diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index cc02e21..4925aa9 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -12,19 +12,6 @@ menuconfig MTD
 
 if MTD
 
-config MTD_DEBUG
-	bool "Debugging"
-	help
-	  This turns on low-level debugging for the entire MTD sub-system.
-	  Normally, you should say 'N'.
-
-config MTD_DEBUG_VERBOSE
-	int "Debugging verbosity (0 = quiet, 3 = noisy)"
-	depends on MTD_DEBUG
-	default "0"
-	help
-	  Determines the verbosity level of the MTD debugging messages.
-
 config MTD_TESTS
 	tristate "MTD tests support"
 	depends on m
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 62d56f9..68ea229 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -360,27 +360,4 @@ void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size);
 
 void mtd_erase_callback(struct erase_info *instr);
 
-/*
- * Debugging macro and defines
- */
-#define MTD_DEBUG_LEVEL0	(0)	/* Quiet   */
-#define MTD_DEBUG_LEVEL1	(1)	/* Audible */
-#define MTD_DEBUG_LEVEL2	(2)	/* Loud    */
-#define MTD_DEBUG_LEVEL3	(3)	/* Noisy   */
-
-#ifdef CONFIG_MTD_DEBUG
-#define DEBUG(n, args...)				\
-	do {						\
-		if (n <= CONFIG_MTD_DEBUG_VERBOSE)	\
-			printk(KERN_INFO args);		\
-	} while(0)
-#else /* CONFIG_MTD_DEBUG */
-#define DEBUG(n, args...)				\
-	do {						\
-		if (0)					\
-			printk(KERN_INFO args);		\
-	} while(0)
-
-#endif /* CONFIG_MTD_DEBUG */
-
 #endif /* __MTD_MTD_H__ */



More information about the linux-mtd-cvs mailing list