Skip to content

Commit 87ed114

Browse files
computersforpeacededekind
authored andcommitted
mtd: remove CONFIG_MTD_DEBUG
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
1 parent e645352 commit 87ed114

2 files changed

Lines changed: 0 additions & 36 deletions

File tree

‎drivers/mtd/Kconfig‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@ menuconfig MTD
1212

1313
if MTD
1414

15-
config MTD_DEBUG
16-
bool "Debugging"
17-
help
18-
This turns on low-level debugging for the entire MTD sub-system.
19-
Normally, you should say 'N'.
20-
21-
config MTD_DEBUG_VERBOSE
22-
int "Debugging verbosity (0 = quiet, 3 = noisy)"
23-
depends on MTD_DEBUG
24-
default "0"
25-
help
26-
Determines the verbosity level of the MTD debugging messages.
27-
2815
config MTD_TESTS
2916
tristate "MTD tests support"
3017
depends on m

‎include/linux/mtd/mtd.h‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -360,27 +360,4 @@ void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size);
360360

361361
void mtd_erase_callback(struct erase_info *instr);
362362

363-
/*
364-
* Debugging macro and defines
365-
*/
366-
#define MTD_DEBUG_LEVEL0 (0) /* Quiet */
367-
#define MTD_DEBUG_LEVEL1 (1) /* Audible */
368-
#define MTD_DEBUG_LEVEL2 (2) /* Loud */
369-
#define MTD_DEBUG_LEVEL3 (3) /* Noisy */
370-
371-
#ifdef CONFIG_MTD_DEBUG
372-
#define DEBUG(n, args...) \
373-
do { \
374-
if (n <= CONFIG_MTD_DEBUG_VERBOSE) \
375-
printk(KERN_INFO args); \
376-
} while(0)
377-
#else /* CONFIG_MTD_DEBUG */
378-
#define DEBUG(n, args...) \
379-
do { \
380-
if (0) \
381-
printk(KERN_INFO args); \
382-
} while(0)
383-
384-
#endif /* CONFIG_MTD_DEBUG */
385-
386363
#endif /* __MTD_MTD_H__ */

0 commit comments

Comments
 (0)