]> git.sur5r.net Git - openocd/commitdiff
stm32lx.c: Print device string as info.
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Thu, 25 Feb 2016 13:33:43 +0000 (14:33 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Mon, 29 Feb 2016 19:29:29 +0000 (19:29 +0000)
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>
src/flash/nor/stm32lx.c

index 42e00bdb50e061d269f94b7f41895530cbf476b1..22830e60bc814687f46ddfb91c73b99a1591f3b4 100644 (file)
@@ -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;