aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nand
diff options
context:
space:
mode:
authorTimo Ketola <timo@exertus.fi>2012-01-17 10:47:11 +0200
committerSpencer Oliver <spen@spen-soft.co.uk>2012-01-23 11:47:06 +0000
commitf50ca7c184bf1c02ed6102cfffcc2ca7b4ef4116 (patch)
treea75754b75c5abc08dc12c532a1357c42c7cf8069 /src/flash/nand
parent3c63eff2d97007c1ed9bea63388e97931dc67970 (diff)
downloadriscv-openocd-f50ca7c184bf1c02ed6102cfffcc2ca7b4ef4116.zip
riscv-openocd-f50ca7c184bf1c02ed6102cfffcc2ca7b4ef4116.tar.gz
riscv-openocd-f50ca7c184bf1c02ed6102cfffcc2ca7b4ef4116.tar.bz2
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>
Diffstat (limited to 'src/flash/nand')
-rw-r--r--src/flash/nand/tcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand/tcl.c b/src/flash/nand/tcl.c
index 6389377..c52c347 100644
--- a/src/flash/nand/tcl.c
+++ b/src/flash/nand/tcl.c
@@ -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);
}