[Pcsclite-cvs-commit] r6889 - trunk/Drivers/ccid/src

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Thu Apr 24 13:48:01 UTC 2014


Author: rousseau
Date: 2014-04-24 13:48:01 +0000 (Thu, 24 Apr 2014)
New Revision: 6889

Modified:
   trunk/Drivers/ccid/src/ccid_usb.c
Log:
OpenUSBByName(): log an error if the USB device is not found

If we exit the function without finding the (new) device then we log an
error ""Device not found?".

This could happen if the device is found by Mac OS X USB layer but not
yet by libusb. Noticed on OS X Mavericks using libusb 1.0.18.


Modified: trunk/Drivers/ccid/src/ccid_usb.c
===================================================================
--- trunk/Drivers/ccid/src/ccid_usb.c	2014-04-18 19:12:51 UTC (rev 6888)
+++ trunk/Drivers/ccid/src/ccid_usb.c	2014-04-24 13:48:01 UTC (rev 6889)
@@ -694,6 +694,7 @@
 		close_libusb_if_needed();
 		if (claim_failed)
 			return STATUS_COMM_ERROR;
+		DEBUG_INFO("Device not found?");
 		return STATUS_NO_SUCH_DEVICE;
 	}
 




More information about the Pcsclite-cvs-commit mailing list