[Pcsclite-cvs-commit] r6670 - trunk/PCSC/src

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Sun Jul 28 09:29:13 UTC 2013


Author: rousseau
Date: 2013-06-27 21:07:42 +0000 (Thu, 27 Jun 2013)
New Revision: 6670

Modified:
   trunk/PCSC/src/hotplug_macosx.c
Log:
List found USB devices (when in debug mode)


Modified: trunk/PCSC/src/hotplug_macosx.c
===================================================================
--- trunk/PCSC/src/hotplug_macosx.c	2013-06-25 13:18:22 UTC (rev 6669)
+++ trunk/PCSC/src/hotplug_macosx.c	2013-06-27 21:07:42 UTC (rev 6670)
@@ -510,12 +510,20 @@
 		kret = (*usbdev)->GetLocationID(usbdev, &usbAddress);
 		(*usbdev)->Release(usbdev);
 
+#ifdef DEBUG_HOTPLUG
+		Log4(PCSC_LOG_DEBUG, "Found USB device 0x%04X:0x%04X at 0x%X",
+			vendorId, productId, usbAddress);
+#endif
 		HPDriver *driver;
 		for (driver = driverBundle; driver->m_vendorId; ++driver)
 		{
 			if ((driver->m_vendorId == vendorId)
 				&& (driver->m_productId == productId))
 			{
+#ifdef DEBUG_HOTPLUG
+				Log4(PCSC_LOG_DEBUG, "Adding USB device %04X:%04X at 0x%X",
+					vendorId, productId, usbAddress);
+#endif
 				*readerList =
 					HPDeviceListInsert(*readerList, driver, usbAddress);
 			}




More information about the Pcsclite-cvs-commit mailing list