Commit f50ca7c1 authored by Timo Ketola's avatar Timo Ketola Committed by Spencer Oliver
Browse files

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: default avatarTimo Ketola <timo@exertus.fi>
Reviewed-on: http://openocd.zylin.com/385


Tested-by: jenkins
Reviewed-by: default avatarSpencer Oliver <spen@spen-soft.co.uk>
parent 3c63eff2
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment