diff options
author | Stefan Roese <sr@denx.de> | 2008-01-10 18:47:33 +0100 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2008-08-12 11:31:24 -0500 |
commit | e52b34d40a8a646e3d11638ea8797e96398dba13 (patch) | |
tree | 825e28a9a629c1b22207106c3f5364fe5624b8f3 /drivers/mtd/nand/nand_bbt.c | |
parent | fe56a2772e5c59577df906163d0d4b29b056140e (diff) | |
download | u-boot-imx-e52b34d40a8a646e3d11638ea8797e96398dba13.zip u-boot-imx-e52b34d40a8a646e3d11638ea8797e96398dba13.tar.gz u-boot-imx-e52b34d40a8a646e3d11638ea8797e96398dba13.tar.bz2 |
NAND: Make NAND driver less verbose per default
This patch turns off printing of bad blocks per default upon bootup.
This can always be shown via the "nand bad" command later.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/mtd/nand/nand_bbt.c')
-rw-r--r-- | drivers/mtd/nand/nand_bbt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c index acf1cf5..8447947 100644 --- a/drivers/mtd/nand/nand_bbt.c +++ b/drivers/mtd/nand/nand_bbt.c @@ -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++; } |