[Pcsclite-cvs-commit] r3025 - /trunk/Drivers/ccid/src/ifdhandler.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Jun 26 13:38:50 UTC 2008


Author: rousseau
Date: Thu Jun 26 13:38:50 2008
New Revision: 3025

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3025
Log:
IFDHPolling(): log only if DEBUG_LEVEL_PERIODIC is set

Modified:
    trunk/Drivers/ccid/src/ifdhandler.c

Modified: trunk/Drivers/ccid/src/ifdhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ifdhandler.c?rev=3025&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Thu Jun 26 13:38:50 2008
@@ -259,7 +259,10 @@
 	if (-1 == (reader_index = LunToReaderIndex(Lun)))
 		return IFD_COMMUNICATION_ERROR;
 
-	DEBUG_INFO2("lun: %X", Lun);
+	/* log only if DEBUG_LEVEL_PERIODIC is set */
+	if (LogLevel & DEBUG_LEVEL_PERIODIC)
+		DEBUG_INFO2("lun: %X", Lun);
+
 	ret = InterruptRead(reader_index);
 	if (ret > 0)
 		return IFD_SUCCESS;




More information about the Pcsclite-cvs-commit mailing list