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

Ludovic Rousseau rousseau at alioth.debian.org
Fri Feb 23 18:02:43 CET 2007


Author: rousseau
Date: 2007-02-23 18:02:43 +0100 (Fri, 23 Feb 2007)
New Revision: 2429

Modified:
   trunk/Drivers/ccid/src/parse.c
Log:
display the error message if usb_control_msg() fails


Modified: trunk/Drivers/ccid/src/parse.c
===================================================================
--- trunk/Drivers/ccid/src/parse.c	2007-02-23 17:01:25 UTC (rev 2428)
+++ trunk/Drivers/ccid/src/parse.c	2007-02-23 17:02:43 UTC (rev 2429)
@@ -286,7 +286,7 @@
 
 		/* we got an error? */
 		if (n <= 0)
-			printf("   IFD does not support GET CLOCK FREQUENCIES request\n");
+			printf("   IFD does not support GET CLOCK FREQUENCIES request: %s\n", strerror(errno));
 		else
 			if (n % 4) 	/* not a multiple of 4 */
 				printf("   wrong size for GET CLOCK FREQUENCIES: %d\n", n);
@@ -328,7 +328,8 @@
 
 		/* we got an error? */
 		if (n <= 0)
-			printf("   IFD does not support GET_DATA_RATES request\n");
+			printf("   IFD does not support GET_DATA_RATES request: %s\n",
+				strerror(errno));
 		else
 			if (n % 4) 	/* not a multiple of 4 */
 				printf("   wrong size for GET_DATA_RATES: %d\n", n);




More information about the Pcsclite-cvs-commit mailing list