NAND: Misleading report of erased blocks

For example, when blocks 2 and 3 were erased, openocd reported "erased blocks 2 to 4". That should be "2 to 3", I think.

Change-Id: Icece63dedd3dd931b70fa73616819a19572e39de
Signed-off-by: Timo Ketola <timo@exertus.fi>
Reviewed-on: http://openocd.zylin.com/385
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
Timo Ketola 2012-01-17 10:47:11 +02:00 committed by Spencer Oliver
parent 3c63eff2d9
commit f50ca7c184
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ COMMAND_HANDLER(handle_nand_erase_command)
{
command_print(CMD_CTX, "erased blocks %lu to %lu "
"on NAND flash device #%s '%s'",
offset, offset + length,
offset, offset + length - 1,
CMD_ARGV[0], p->device->name);
}