mtd: remove MTDDEBUG() and CONFIG_MTD_DEBUG
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 17 Oct 2017 15:10:49 +0000 (00:10 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 23 Oct 2017 18:07:26 +0000 (14:07 -0400)
All users of this macro have been converted.  Remove MTDDEBUG and
related CONFIG options.

ubifs_dbg_msg_key() is kept.  It is silent unless DEBUG is defined.

I am not touching scripts/config_whitelist.txt.  The deprecated options
will be dropped by the next resync.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
fs/ubifs/debug.h
include/configs/woodburn_common.h
include/linux/mtd/mtd.h

index 807ce1b7338033dded1ffc68c45eb0d7e53957a2..98140834f9db86b11112220bfbfbf400a36e606a 100644 (file)
@@ -187,19 +187,12 @@ struct ubifs_global_debug_info {
                 ##__VA_ARGS__)
 
 #define DBG_KEY_BUF_LEN 48
-#if defined CONFIG_MTD_DEBUG
 #define ubifs_dbg_msg_key(type, key, fmt, ...) do {                            \
        char __tmp_key_buf[DBG_KEY_BUF_LEN];                                   \
        pr_debug("UBIFS DBG " type ": " fmt "%s\n",                            \
                 ##__VA_ARGS__,                                                \
                 dbg_snprintf_key(c, key, __tmp_key_buf, DBG_KEY_BUF_LEN));    \
 } while (0)
-#else
-#define ubifs_dbg_msg_key(type, key, fmt, ...) do {                            \
-       pr_debug("UBIFS DBG\n");                                               \
-} while (0)
-
-#endif
 
 #endif
 
index 8ea5e48483441b5e7b5fb2365c664d327f0de1b9..67c936721d2768092cd876708ea5f5cebdbf9837 100644 (file)
 #define CONFIG_MXC_NAND_HWECC
 #define CONFIG_SYS_NAND_LARGEPAGE
 
-#if 0
-#define CONFIG_MTD_DEBUG
-#define CONFIG_MTD_DEBUG_VERBOSE       7
-#endif
 #define CONFIG_SYS_NAND_ONFI_DETECTION
 
 /*
index 3e1694b3a5d33802fcecd32ad0b38556571a8e0d..4bde2513223c01fd3a8636611ba5973839205ec5 100644 (file)
@@ -442,30 +442,6 @@ static inline void mtd_erase_callback(struct erase_info *instr)
 }
 #endif
 
-#ifdef __UBOOT__
-/*
- * 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 MTDDEBUG(n, args...)                           \
-       do {                                            \
-               if (n <= CONFIG_MTD_DEBUG_VERBOSE)      \
-                       printk(KERN_INFO args);         \
-       } while(0)
-#else /* CONFIG_MTD_DEBUG */
-#define MTDDEBUG(n, args...)                           \
-       do {                                            \
-               if (0)                                  \
-                       printk(KERN_INFO args);         \
-       } while(0)
-#endif /* CONFIG_MTD_DEBUG */
-#endif
-
 static inline int mtd_is_bitflip(int err) {
        return err == -EUCLEAN;
 }