[Pcsclite-cvs-commit] r6484 - /trunk/pcsc-tools/pcsc_scan.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Nov 27 17:06:01 UTC 2012


Author: rousseau
Date: Tue Nov 27 17:06:01 2012
New Revision: 6484

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6484
Log:
Do not display time if SCardGetStatusChange() returns because of a time
out.

Mac OS X PC/SC do not support \\?PnP?\Notification so a timeout of 1
second is used. We do not want to have a log line with the time every 1
second.

Thanks to Libor Pospíchal for the bug report.

Modified:
    trunk/pcsc-tools/pcsc_scan.c

Modified: trunk/pcsc-tools/pcsc_scan.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/pcsc-tools/pcsc_scan.c?rev=6484&op=diff
==============================================================================
--- trunk/pcsc-tools/pcsc_scan.c (original)
+++ trunk/pcsc-tools/pcsc_scan.c Tue Nov 27 17:06:01 2012
@@ -309,9 +309,12 @@
 				goto get_readers;
 		}
 
-		/* Timestamp the event as we get notified */
-		t = time(NULL);
-		printf("\n%s", ctime(&t));
+		if (rv != SCARD_E_TIMEOUT)
+		{
+			/* Timestamp the event as we get notified */
+			t = time(NULL);
+			printf("\n%s", ctime(&t));
+		}
 
 		/* Now we have an event, check all the readers in the list to see what
 		 * happened */




More information about the Pcsclite-cvs-commit mailing list