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:
oharboe 2008-02-29 11:18:41 +00:00
parent 67e0aea258
commit 43126e8f49
1 changed files with 2 additions and 2 deletions

View File

@ -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;