From 788bdb49fd663c0f608cdb81dcd15ba0857a524b Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Fri, 10 Apr 2015 11:46:22 +0100 Subject: [PATCH] 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 --- src/jtag/drivers/cmsis_dap_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jtag/drivers/cmsis_dap_usb.c b/src/jtag/drivers/cmsis_dap_usb.c index 6a7ca2595..38828ea0d 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; }