]> git.sur5r.net Git - openocd/commitdiff
cmsis-dap: print vendor and product id on open failure
authorSpencer Oliver <spen@spen-soft.co.uk>
Fri, 10 Apr 2015 10:46:22 +0000 (11:46 +0100)
committerPaul Fertser <fercerpav@gmail.com>
Thu, 16 Apr 2015 19:28:03 +0000 (20:28 +0100)
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>
src/jtag/drivers/cmsis_dap_usb.c

index 6a7ca2595dec4d0d78229e5333b45188a37257af..38828ea0d2472a3133da7b48724637ce1c5c6808 100644 (file)
@@ -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;
        }