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

Ludovic Rousseau rousseau at alioth.debian.org
Tue Jan 2 18:01:16 CET 2007


Author: rousseau
Date: 2007-01-02 18:01:15 +0100 (Tue, 02 Jan 2007)
New Revision: 2295

Modified:
   trunk/Drivers/ccid/src/ccid_usb.c
Log:
OpenUSBByName(): move the "Checking device: " log message out of the
usbDevice[] loop since we display info of the new device and not of
a device from usbDevice[]


Modified: trunk/Drivers/ccid/src/ccid_usb.c
===================================================================
--- trunk/Drivers/ccid/src/ccid_usb.c	2007-01-02 16:55:33 UTC (rev 2294)
+++ trunk/Drivers/ccid/src/ccid_usb.c	2007-01-02 17:01:15 UTC (rev 2295)
@@ -299,12 +299,12 @@
 					/* is it already opened? */
 					already_used = FALSE;
 
+					DEBUG_COMM3("Checking device: %s/%s",
+						bus->dirname, dev->filename);
 					for (r=0; r<CCID_DRIVER_MAX_READERS; r++)
 					{
 						if (usbDevice[r].handle)
 						{
-							DEBUG_COMM3("Checking device: %s/%s",
-								bus->dirname, dev->filename);
 							/* same busname, same filename */
 							if (strcmp(usbDevice[r].dirname, bus->dirname) == 0 && strcmp(usbDevice[r].filename, dev->filename) == 0)
 								already_used = TRUE;




More information about the Pcsclite-cvs-commit mailing list