stm32lx.c: Print device string as info.

Change-Id: I893f0d9a5095a9f122adc76cf403277639fa880c
Signed-off-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Reviewed-on: http://openocd.zylin.com/3362
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
__archive__
Uwe Bonnes 2016-02-25 14:33:43 +01:00 committed by Andreas Fritiofson
parent a85d52169b
commit fe03eba277
1 changed files with 2 additions and 0 deletions

View File

@ -740,6 +740,8 @@ static int stm32lx_probe(struct flash_bank *bank)
if (!stm32lx_info->part_info) { if (!stm32lx_info->part_info) {
LOG_WARNING("Cannot identify target as a STM32L family."); LOG_WARNING("Cannot identify target as a STM32L family.");
return ERROR_FAIL; return ERROR_FAIL;
} else {
LOG_INFO("Device: %s", stm32lx_info->part_info->device_str);
} }
stm32lx_info->flash_base = stm32lx_info->part_info->flash_base; stm32lx_info->flash_base = stm32lx_info->part_info->flash_base;