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

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Tue Jul 30 08:53:54 UTC 2013


Author: rousseau
Date: 2013-07-30 08:53:54 +0000 (Tue, 30 Jul 2013)
New Revision: 6692

Modified:
   trunk/HandlerTest/Host/handler_test.c
Log:
Fix printf-like format

handler_test.c: In function ?\226?\128?\152exchange?\226?\128?\153:
handler_test.c:992:2: warning: format ?\226?\128?\152%d?\226?\128?\153 expects argument of type ?\226?\128?\152int?\226?\128?\153, but argument 3 has type ?\226?\128?\152DWORD?\226?\128?\153 [-Wformat]
handler_test.c:992:2: warning: format ?\226?\128?\152%X?\226?\128?\153 expects argument of type ?\226?\128?\152unsigned int?\226?\128?\153, but argument 4 has type ?\226?\128?\152DWORD?\226?\128?\153 [-Wformat]


Modified: trunk/HandlerTest/Host/handler_test.c
===================================================================
--- trunk/HandlerTest/Host/handler_test.c	2013-07-30 08:50:01 UTC (rev 6691)
+++ trunk/HandlerTest/Host/handler_test.c	2013-07-30 08:53:54 UTC (rev 6692)
@@ -989,7 +989,7 @@
 
 	rv = f.IFDHTransmitToICC(lun, SendPci, s, s_length, r, r_length, RecvPci);
 
-	log_msg(0, "Received %d (0x%04X) bytes", *r_length, *r_length);
+	log_msg(0, "Received %lu (0x%04lX) bytes", *r_length, *r_length);
 	log_xxd(0, "Received: ", r, *r_length);
 	if (rv)
 	{




More information about the Pcsclite-cvs-commit mailing list