mtd, nand: move some printfs to debug output.
current U-Boot shows on startup (for example on the enbw_cmc board) the following printfs from the nand subsystem: Flash: 2 MiB NAND: Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 nand_read_bbt: Bad block at 0x000002980000 nand_read_bbt: Bad block at 0x000003240000 128 MiB MMC: davinci: 0 remove them to debug output, so it shows with this patch: Flash: 2 MiB NAND: 128 MiB MMC: davinci: 0 Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Scott Wood <scottwood@freescale.com> Signed-off-by: Scott Wood <scott@tyr.buserror.net>
This commit is contained in:
parent
65683026a5
commit
a35ea8070c
@ -259,10 +259,10 @@ static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num,
|
|||||||
mtd->ecc_stats.bbtblocks++;
|
mtd->ecc_stats.bbtblocks++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* Leave it for now, if its matured we can move this
|
MTDDEBUG(MTD_DEBUG_LEVEL0, "nand_read_bbt: " \
|
||||||
* message to MTD_DEBUG_LEVEL0 */
|
"Bad block at 0x%012llx\n",
|
||||||
printk(KERN_DEBUG "nand_read_bbt: Bad block at 0x%012llx\n",
|
(loff_t)((offs << 2) + (act >> 1))
|
||||||
(loff_t)((offs << 2) + (act >> 1)) << this->bbt_erase_shift);
|
<< this->bbt_erase_shift);
|
||||||
/* Factory marked bad or worn out ? */
|
/* Factory marked bad or worn out ? */
|
||||||
if (tmp == 0)
|
if (tmp == 0)
|
||||||
this->bbt[offs + (act >> 3)] |= 0x3 << (act & 0x06);
|
this->bbt[offs + (act >> 3)] |= 0x3 << (act & 0x06);
|
||||||
@ -651,8 +651,9 @@ static int search_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr
|
|||||||
if (td->pages[i] == -1)
|
if (td->pages[i] == -1)
|
||||||
printk(KERN_WARNING "Bad block table not found for chip %d\n", i);
|
printk(KERN_WARNING "Bad block table not found for chip %d\n", i);
|
||||||
else
|
else
|
||||||
printk(KERN_DEBUG "Bad block table found at page %d, version 0x%02X\n", td->pages[i],
|
MTDDEBUG(MTD_DEBUG_LEVEL0, "Bad block table found " \
|
||||||
td->version[i]);
|
"at page %d, version 0x%02X\n", td->pages[i],
|
||||||
|
td->version[i]);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user