From 9950ce51eb8c8187a53d6f81e6c84febf88817c4 Mon Sep 17 00:00:00 2001 From: aleph Date: Mon, 30 May 2011 13:46:37 +0000 Subject: [PATCH] nand driver: change some logging levels. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4936 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/nand.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bertos/drv/nand.c b/bertos/drv/nand.c index 0eb8808f..82f5f697 100644 --- a/bertos/drv/nand.c +++ b/bertos/drv/nand.c @@ -135,8 +135,6 @@ static void getAddrCycles(uint32_t page, uint16_t offset, uint32_t *cycle0, uint *cycle0 = offset & 0xff; *cycle1234 = (page << 8) | ((offset >> 8) & 0xf); - - //LOG_INFO("nand addr: %lx %lx\n", *cycle1234, *cycle0); } @@ -487,7 +485,7 @@ static void initBlockMap(Nand *chip) chip->block_map[b] = getFreeRemapBlock(chip); setMapping(chip, b, chip->block_map[b]); remapped_anything = true; - LOG_INFO("nand: found new bad block %d, remapped to %d\n", b, chip->block_map[b]); + LOG_WARN("nand: found new bad block %d, remapped to %d\n", b, chip->block_map[b]); } } @@ -583,7 +581,7 @@ static size_t nand_writeDirect(struct KBlock *kblk, block_idx_t idx, const void ASSERT(size <= NAND_BLOCK_SIZE); ASSERT(size % CONFIG_NAND_DATA_SIZE == 0); - //LOG_INFO("nand_writeDirect: idx=%ld offset=%d size=%d\n", idx, offset, size); + LOG_INFO("nand_writeDirect: idx=%ld offset=%d size=%d\n", idx, offset, size); nand_blockErase(NAND_CAST(kblk), idx); @@ -612,7 +610,7 @@ static size_t nand_readDirect(struct KBlock *kblk, block_idx_t idx, void *buf, s ASSERT(offset < NAND_BLOCK_SIZE); ASSERT(size <= NAND_BLOCK_SIZE); - //LOG_INFO("nand_readDirect: idx=%ld offset=%d size=%d\n", idx, offset, size); + LOG_INFO("nand_readDirect: idx=%ld offset=%d size=%d\n", idx, offset, size); while (nread < size) { -- 2.25.1