[Pcsclite-cvs-commit] r5856 - /trunk/PCSC/src/readerfactory.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sat Jul 9 11:14:00 UTC 2011


Author: rousseau
Date: Sat Jul  9 11:14:00 2011
New Revision: 5856

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5856
Log:
Fix compiler warnings

readerfactory.c: In function 'RFAddReader':
readerfactory.c:124: warning: format '%d' expects type 'int', but
argument 6 has type 'size_t'
readerfactory.c:124: warning: format '%d' expects type 'int', but
argument 7 has type 'long unsigned int'

Modified:
    trunk/PCSC/src/readerfactory.c

Modified: trunk/PCSC/src/readerfactory.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/readerfactory.c?rev=5856&op=diff
==============================================================================
--- trunk/PCSC/src/readerfactory.c (original)
+++ trunk/PCSC/src/readerfactory.c Sat Jul  9 11:14:00 2011
@@ -121,7 +121,8 @@
 	/* Reader name too long? also count " 00 00"*/
 	if (strlen(readerName) > MAX_READERNAME - sizeof(" 00 00"))
 	{
-		Log3(PCSC_LOG_ERROR, "Reader name too long: %d chars instead of max %d",
+		Log3(PCSC_LOG_ERROR,
+			"Reader name too long: %ld chars instead of max %ld",
 			strlen(readerName), MAX_READERNAME - sizeof(" 00 00"));
 		return SCARD_E_INVALID_VALUE;
 	}




More information about the Pcsclite-cvs-commit mailing list