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:
parent
3c63eff2d9
commit
f50ca7c184
|
@ -196,7 +196,7 @@ COMMAND_HANDLER(handle_nand_erase_command)
|
||||||
{
|
{
|
||||||
command_print(CMD_CTX, "erased blocks %lu to %lu "
|
command_print(CMD_CTX, "erased blocks %lu to %lu "
|
||||||
"on NAND flash device #%s '%s'",
|
"on NAND flash device #%s '%s'",
|
||||||
offset, offset + length,
|
offset, offset + length - 1,
|
||||||
CMD_ARGV[0], p->device->name);
|
CMD_ARGV[0], p->device->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue