|
@@ -391,7 +391,7 @@ static int create_bbt(struct mtd_info *mtd, uint8_t *buf,
|
|
|
loff_t from;
|
|
|
size_t readlen;
|
|
|
|
|
|
- printk(KERN_INFO "Scanning device for bad blocks\n");
|
|
|
+ MTDDEBUG (MTD_DEBUG_LEVEL0, "Scanning device for bad blocks\n");
|
|
|
|
|
|
if (bd->options & NAND_BBT_SCANALLPAGES)
|
|
|
len = 1 << (this->bbt_erase_shift - this->page_shift);
|
|
@@ -444,8 +444,9 @@ static int create_bbt(struct mtd_info *mtd, uint8_t *buf,
|
|
|
|
|
|
if (ret) {
|
|
|
this->bbt[i >> 3] |= 0x03 << (i & 0x6);
|
|
|
- printk(KERN_WARNING "Bad eraseblock %d at 0x%08x\n",
|
|
|
- i >> 1, (unsigned int)from);
|
|
|
+ MTDDEBUG (MTD_DEBUG_LEVEL0,
|
|
|
+ "Bad eraseblock %d at 0x%08x\n",
|
|
|
+ i >> 1, (unsigned int)from);
|
|
|
mtd->ecc_stats.badblocks++;
|
|
|
}
|
|
|
|