summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2010-01-19 13:56:33 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2010-01-19 13:56:33 -0800
commitfb4239866c6a9aa429b58be7488a93ec1245597b (patch)
tree89b1e486d213865f57376ca0ccefe5a3da0a06e8 /src
parent924bf27596f31ab8e79fbb4de702be4a9fa12874 (diff)
downloadopenocd_libswd-fb4239866c6a9aa429b58be7488a93ec1245597b.tar.gz
openocd_libswd-fb4239866c6a9aa429b58be7488a93ec1245597b.tar.bz2
openocd_libswd-fb4239866c6a9aa429b58be7488a93ec1245597b.tar.xz
openocd_libswd-fb4239866c6a9aa429b58be7488a93ec1245597b.zip
NOR: fix diagnostic
The "NOR: last_addr also needs correction when checking alignment" patch omitted a necessary update to the key diagnostic; fix. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/flash/nor/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c
index 277da38c..2c615192 100644
--- a/src/flash/nor/core.c
+++ b/src/flash/nor/core.c
@@ -408,7 +408,7 @@ static int flash_iterate_address_range(struct target *target,
LOG_ERROR("address range 0x%8.8x .. 0x%8.8x "
"is not sector-aligned",
(unsigned) (c->base + addr),
- (unsigned) (last_addr - 1));
+ (unsigned) (c->base + last_addr - 1));
return ERROR_FLASH_DST_BREAKS_ALIGNMENT;
}