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>__archive__
parent
ebbc9cb86c
commit
788bdb49fd
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue