cmsis-dap: print vendor and product id on open failure

Change-Id: Iae7ed8d59a722b805536550a8033f5fb7c85c5fc
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/2708
Tested-by: jenkins
Reviewed-by: Andrey Yurovsky <yurovsky@gmail.com>
This commit is contained in:
Spencer Oliver 2015-04-10 11:46:22 +01:00 committed by Paul Fertser
parent ebbc9cb86c
commit 788bdb49fd
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ static int cmsis_dap_usb_open(void)
dev = hid_open(target_vid, target_pid, target_serial); dev = hid_open(target_vid, target_pid, target_serial);
if (dev == NULL) { 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; return ERROR_FAIL;
} }