stlink-usb: Rewrite warning libusb_claim_interface, to be more human friendly. Fixes...
authorJerry Jacobs <jerry.jacobs@xor-gate.org>
Thu, 5 May 2016 10:55:58 +0000 (12:55 +0200)
committerJerry Jacobs <jerry.jacobs@xor-gate.org>
Thu, 5 May 2016 10:55:58 +0000 (12:55 +0200)
src/stlink-usb.c

index 4cdefd795486d89965b2c9869ced5677d9232606..98654129eccdca57b5a20ebaca2b5d525f48d873 100644 (file)
@@ -836,7 +836,7 @@ stlink_t *stlink_open_usb(enum ugly_loglevel verbose, bool reset, char serial[16
     }
 
     if (libusb_claim_interface(slu->usb_handle, 0)) {
-        WLOG("libusb_claim_interface() failed\n");
+        WLOG("Stlink usb device found, but unable to claim (probably already in use?)\n");
         goto on_libusb_error;
     }