The "nand chip.erase" command always printed as bad blocks even in the
case of reserved blocks. Reserved blocks are used for storing bad block
tables. The patch displays "bbt reserved" when printing reserved blocks in
"nand chip.erase" command.
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
int ret = mtd_block_isbad(mtd, erase.addr);
if (ret > 0) {
if (!opts->quiet)
- printf("\rSkipping bad block at "
+ printf("\rSkipping %s at "
"0x%08llx "
" \n",
+ ret == 1 ? "bad block" : "bbt reserved",
erase.addr);
if (!opts->spread)