aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>2016-02-25 14:33:43 +0100
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2016-02-29 19:29:29 +0000
commitfe03eba277ccc03d54270927c0e0f66360904632 (patch)
treefaa2d6292b132c4604a5b76a276f417f267d8cf7
parenta85d52169bb9c84d5569c90ea09e48f46e7fde0a (diff)
downloadriscv-openocd-fe03eba277ccc03d54270927c0e0f66360904632.zip
riscv-openocd-fe03eba277ccc03d54270927c0e0f66360904632.tar.gz
riscv-openocd-fe03eba277ccc03d54270927c0e0f66360904632.tar.bz2
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>
-rw-r--r--src/flash/nor/stm32lx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flash/nor/stm32lx.c b/src/flash/nor/stm32lx.c
index 42e00bd..22830e6 100644
--- a/src/flash/nor/stm32lx.c
+++ b/src/flash/nor/stm32lx.c
@@ -740,6 +740,8 @@ static int stm32lx_probe(struct flash_bank *bank)
if (!stm32lx_info->part_info) {
LOG_WARNING("Cannot identify target as a STM32L family.");
return ERROR_FAIL;
+ } else {
+ LOG_INFO("Device: %s", stm32lx_info->part_info->device_str);
}
stm32lx_info->flash_base = stm32lx_info->part_info->flash_base;