diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-17 15:10:49 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-10-23 18:07:26 (GMT) |
commit | 8b7f4b9cc1f31292e5690336f529eca493df3df5 (patch) | |
tree | 7a41bdb3ed9c70c40137456892a2eb7c26cfb0b2 | |
parent | 166cae20dd797dcb25fc550269792f15704d9c58 (diff) | |
download | u-boot-8b7f4b9cc1f31292e5690336f529eca493df3df5.tar.xz |
mtd: remove MTDDEBUG() and CONFIG_MTD_DEBUG
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>
-rw-r--r-- | fs/ubifs/debug.h | 7 | ||||
-rw-r--r-- | include/configs/woodburn_common.h | 4 | ||||
-rw-r--r-- | include/linux/mtd/mtd.h | 24 |
3 files changed, 0 insertions, 35 deletions
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h index 807ce1b..9814083 100644 --- a/fs/ubifs/debug.h +++ b/fs/ubifs/debug.h @@ -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 diff --git a/include/configs/woodburn_common.h b/include/configs/woodburn_common.h index 8ea5e48..67c9367 100644 --- a/include/configs/woodburn_common.h +++ b/include/configs/woodburn_common.h @@ -178,10 +178,6 @@ #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 /* diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 3e1694b..4bde251 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -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; } |