]> git.sur5r.net Git - openocd/commitdiff
drivers/stlink: clarify "init mode failed" message
authorPaul Fertser <fercerpav@gmail.com>
Thu, 30 Oct 2014 13:22:40 +0000 (16:22 +0300)
committerPaul Fertser <fercerpav@gmail.com>
Fri, 30 Jan 2015 09:44:24 +0000 (09:44 +0000)
The message as it was didn't let the user know that something was wrong
with the target or wiring.

Change-Id: Ib609c2d31959e77413e61c348d0e31d7269d5c58
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2365
Tested-by: jenkins
Reviewed-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Reviewed-by: Jens Bauer <jens@gpio.dk>
src/jtag/drivers/stlink_usb.c

index b54fc4d7377ed2cf3ca8a8281eaae9c7ad555c1f..4959f97cce528c3f905b607e57efc9ad4454ef29 100644 (file)
@@ -1831,7 +1831,7 @@ static int stlink_usb_open(struct hl_interface_param_s *param, void **fd)
        err = stlink_usb_init_mode(h, param->connect_under_reset);
 
        if (err != ERROR_OK) {
-               LOG_ERROR("init mode failed");
+               LOG_ERROR("init mode failed (unable to connect to the target)");
                goto error_open;
        }