#ifdef CONFIG_MTD_DEBUG
#define DEBUG(n, args...)
do {
if (n <= CONFIG_MTD_DEBUG_VERBOSE)
printf(args);
} while(0)
#else /* CONFIG_MTD_DEBUG */
#define DEBUG(n, args...) do { } while(0)
char string[10] = "vvvvvvvvvvvvvvvvvvvvv ";
DEBUG(1, "nand_scan_tailnand_scan_tailnand_scan_tailnand_scan_tailnand_scan_tail ");
DEBUG(1, "%s ", string);
都可以
CONFIG_MTD_DEBUG_VERBOSE
CONFIG_MTD_DEBU