From a4ed84817116c473f398889ed3b54851a1e25a08 Mon Sep 17 00:00:00 2001 From: oharboe Date: Tue, 8 Apr 2008 16:27:50 +0000 Subject: 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 --- src/flash/cfi.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/flash/cfi.c') diff --git a/src/flash/cfi.c b/src/flash/cfi.c index 3d830709..9c1910e5 100644 --- a/src/flash/cfi.c +++ b/src/flash/cfi.c @@ -354,6 +354,7 @@ int cfi_read_intel_pri_ext(flash_bank_t *bank) target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command); cfi_command(bank, 0xff, command); target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command); + LOG_ERROR("Could not read bank flash bank information"); return ERROR_FLASH_BANK_INVALID; } @@ -407,6 +408,7 @@ int cfi_read_spansion_pri_ext(flash_bank_t *bank) { cfi_command(bank, 0xf0, command); target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command); + LOG_ERROR("Could not read spansion bank information"); return ERROR_FLASH_BANK_INVALID; } @@ -475,6 +477,7 @@ int cfi_read_atmel_pri_ext(flash_bank_t *bank) { cfi_command(bank, 0xf0, command); target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command); + LOG_ERROR("Could not read atmel bank information"); return ERROR_FLASH_BANK_INVALID; } @@ -1935,6 +1938,7 @@ int cfi_probe(struct flash_bank_s *bank) target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command); cfi_command(bank, 0xff, command); target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command); + LOG_ERROR("Could not probe bank"); return ERROR_FLASH_BANK_INVALID; } -- cgit v1.2.3