From d537cfa124b74ee2bd0d6997519868df756645e3 Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Thu, 30 Oct 2014 16:22:40 +0300 Subject: [PATCH] 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 --- src/jtag/drivers/stlink_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5