[Pcsclite-cvs-commit] r1973 - trunk/HandlerTest/Host

Ludovic Rousseau rousseau at costa.debian.org
Fri Mar 24 14:24:45 CET 2006


Author: rousseau
Date: 2006-03-24 13:23:22 +0000 (Fri, 24 Mar 2006)
New Revision: 1973

Modified:
   trunk/HandlerTest/Host/handler_test.c
Log:
exchange(): display the error message in red color


Modified: trunk/HandlerTest/Host/handler_test.c
===================================================================
--- trunk/HandlerTest/Host/handler_test.c	2006-03-24 13:12:45 UTC (rev 1972)
+++ trunk/HandlerTest/Host/handler_test.c	2006-03-24 13:23:22 UTC (rev 1973)
@@ -797,7 +797,8 @@
 	/* check the received length */
 	if (*r_length != e_length)
 	{
-		printf("ERROR: Expected %d bytes and received %ld\n", e_length, *r_length);
+		printf("\33[01;31mERROR: Expected %d bytes and received %ld\33[0m\n",
+			e_length, *r_length);
 		return 1;
 	}
 
@@ -805,7 +806,8 @@
 	for (i=0; i<*r_length; i++)
 		if (r[i] != e[i])
 		{
-			printf("ERROR byte %d: expected 0x%02X, got 0x%02X\n", i, e[i], r[i]);
+			printf("\33[01;31mERROR byte %d: expected 0x%02X, got 0x%02X\n\33[0m",
+				i, e[i], r[i]);
 			return 1;
 		}
 




More information about the Pcsclite-cvs-commit mailing list