.. | .. |
---|
551 | 551 | } |
---|
552 | 552 | #endif |
---|
553 | 553 | |
---|
554 | | -#ifdef __UBOOT__ |
---|
555 | | -/* |
---|
556 | | - * Debugging macro and defines |
---|
557 | | - */ |
---|
558 | | -#define MTD_DEBUG_LEVEL0 (0) /* Quiet */ |
---|
559 | | -#define MTD_DEBUG_LEVEL1 (1) /* Audible */ |
---|
560 | | -#define MTD_DEBUG_LEVEL2 (2) /* Loud */ |
---|
561 | | -#define MTD_DEBUG_LEVEL3 (3) /* Noisy */ |
---|
562 | | - |
---|
563 | | -#ifdef CONFIG_MTD_DEBUG |
---|
564 | | -#define MTDDEBUG(n, args...) \ |
---|
565 | | - do { \ |
---|
566 | | - if (n <= CONFIG_MTD_DEBUG_VERBOSE) \ |
---|
567 | | - printk(KERN_INFO args); \ |
---|
568 | | - } while(0) |
---|
569 | | -#else /* CONFIG_MTD_DEBUG */ |
---|
570 | | -#define MTDDEBUG(n, args...) \ |
---|
571 | | - do { \ |
---|
572 | | - if (0) \ |
---|
573 | | - printk(KERN_INFO args); \ |
---|
574 | | - } while(0) |
---|
575 | | -#endif /* CONFIG_MTD_DEBUG */ |
---|
576 | | -#endif |
---|
577 | | - |
---|
578 | 554 | static inline int mtd_is_bitflip(int err) { |
---|
579 | 555 | return err == -EUCLEAN; |
---|
580 | 556 | } |
---|