From: Paul Fertser Date: Thu, 30 Oct 2014 13:22:40 +0000 (+0300) Subject: drivers/stlink: clarify "init mode failed" message X-Git-Tag: v0.9.0-rc1~167 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d537cfa124b74ee2bd0d6997519868df756645e3;p=openocd drivers/stlink: clarify "init mode failed" message 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 Reviewed-on: http://openocd.zylin.com/2365 Tested-by: jenkins Reviewed-by: Uwe Bonnes Reviewed-by: Jens Bauer --- diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c index b54fc4d7..4959f97c 100644 --- a/src/jtag/drivers/stlink_usb.c +++ b/src/jtag/drivers/stlink_usb.c @@ -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; }