Pavel Chromy: clarify error messages
git-svn-id: svn://svn.berlios.de/openocd/trunk@387 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
67e0aea258
commit
43126e8f49
|
@ -106,7 +106,7 @@ static int flash_driver_erase(struct flash_bank_s *bank, int first, int last)
|
||||||
retval=bank->driver->erase(bank, first, last);
|
retval=bank->driver->erase(bank, first, last);
|
||||||
if (retval!=ERROR_OK)
|
if (retval!=ERROR_OK)
|
||||||
{
|
{
|
||||||
ERROR("failed erasing banks %d to %d", first, last);
|
ERROR("failed erasing sectors %d to %d", first, last);
|
||||||
}
|
}
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
|
@ -119,7 +119,7 @@ int flash_driver_protect(struct flash_bank_s *bank, int set, int first, int last
|
||||||
retval=bank->driver->protect(bank, set, first, last);
|
retval=bank->driver->protect(bank, set, first, last);
|
||||||
if (retval!=ERROR_OK)
|
if (retval!=ERROR_OK)
|
||||||
{
|
{
|
||||||
ERROR("failed protecting banks %d to %d", first, last);
|
ERROR("failed setting protection for areas %d to %d", first, last);
|
||||||
}
|
}
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
|
|
Loading…
Reference in New Issue