added a couple of LOG_ERROR() messages to improve logfile.
git-svn-id: svn://svn.berlios.de/openocd/trunk@548 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -884,7 +884,10 @@ int flash_erase_address_range(target_t *target, u32 addr, u32 length)
|
||||
return ERROR_FLASH_DST_OUT_OF_BANK; /* no corresponding bank found */
|
||||
|
||||
if (c->size == 0 || c->num_sectors == 0)
|
||||
{
|
||||
LOG_ERROR("Bank is invalid");
|
||||
return ERROR_FLASH_BANK_INVALID;
|
||||
}
|
||||
|
||||
if (length == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user