[Pcsclite-cvs-commit] r6727 - trunk/PCSC/src/utils

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Mon Aug 12 13:21:40 UTC 2013


Author: rousseau
Date: 2013-08-12 13:21:40 +0000 (Mon, 12 Aug 2013)
New Revision: 6727

Modified:
   trunk/PCSC/src/utils/formaticc.c
Log:
Display SCardTransmit() error code (if any)


Modified: trunk/PCSC/src/utils/formaticc.c
===================================================================
--- trunk/PCSC/src/utils/formaticc.c	2013-08-12 13:20:22 UTC (rev 6726)
+++ trunk/PCSC/src/utils/formaticc.c	2013-08-12 13:21:40 UTC (rev 6727)
@@ -246,7 +246,10 @@
 		}
 
 		if (rv != SCARD_S_SUCCESS)
-			fprintf(fo, ".error %ld\n", rv);
+		{
+			fprintf(fo, ".error 0x%08lX\n", rv);
+			printf("Error: 0x%08lX\n", rv);
+		}
 		else
 		{
 			fprintf(fo, "%02ld ", dwRecvLength);




More information about the Pcsclite-cvs-commit mailing list