From: Spencer Oliver Date: Fri, 10 Apr 2015 10:46:22 +0000 (+0100) Subject: cmsis-dap: print vendor and product id on open failure X-Git-Tag: v0.9.0-rc1~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=788bdb49fd663c0f608cdb81dcd15ba0857a524b;p=openocd cmsis-dap: print vendor and product id on open failure Change-Id: Iae7ed8d59a722b805536550a8033f5fb7c85c5fc Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/2708 Tested-by: jenkins Reviewed-by: Andrey Yurovsky --- diff --git a/src/jtag/drivers/cmsis_dap_usb.c b/src/jtag/drivers/cmsis_dap_usb.c index 6a7ca259..38828ea0 100644 --- a/src/jtag/drivers/cmsis_dap_usb.c +++ b/src/jtag/drivers/cmsis_dap_usb.c @@ -247,7 +247,7 @@ static int cmsis_dap_usb_open(void) dev = hid_open(target_vid, target_pid, target_serial); if (dev == NULL) { - LOG_ERROR("unable to open CMSIS-DAP device"); + LOG_ERROR("unable to open CMSIS-DAP device 0x%x:0x%x", target_vid, target_pid); return ERROR_FAIL; }