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:
oharboe
2008-04-08 16:27:50 +00:00
parent eabb49b570
commit a4ed848171
3 changed files with 10 additions and 2 deletions
+3 -2
View File
@@ -195,10 +195,11 @@ int loadDriver(ecosflash_flash_bank_t *info)
image.base_address_set = 0;
image.start_address_set = 0;
target_t *target=info->target;
int retval;
if (image_open(&image, info->driverPath, NULL) != ERROR_OK)
if ((retval=image_open(&image, info->driverPath, NULL)) != ERROR_OK)
{
return ERROR_FLASH_BANK_INVALID;
return retval;
}
info->start_address=image.start_address;