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>
This commit is contained in:
parent
924bf27596
commit
fb4239866c
|
@ -408,7 +408,7 @@ static int flash_iterate_address_range(struct target *target,
|
||||||
LOG_ERROR("address range 0x%8.8x .. 0x%8.8x "
|
LOG_ERROR("address range 0x%8.8x .. 0x%8.8x "
|
||||||
"is not sector-aligned",
|
"is not sector-aligned",
|
||||||
(unsigned) (c->base + addr),
|
(unsigned) (c->base + addr),
|
||||||
(unsigned) (last_addr - 1));
|
(unsigned) (c->base + last_addr - 1));
|
||||||
return ERROR_FLASH_DST_BREAKS_ALIGNMENT;
|
return ERROR_FLASH_DST_BREAKS_ALIGNMENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue