*cycle0 = offset & 0xff;
*cycle1234 = (page << 8) | ((offset >> 8) & 0xf);
-
- //LOG_INFO("nand addr: %lx %lx\n", *cycle1234, *cycle0);
}
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]);
}
}
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);
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)
{