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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sun Oct 2 15:42:36 UTC 2011


Author: rousseau
Date: Sun Oct  2 15:42:35 2011
New Revision: 5992

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5992
Log:
Use %zd instead of %ld for a size_t integer

Fix 2 compiler warnings:
readerfactory.c: In function `RFAddReader':
readerfactory.c:124:3: warning: format `%ld' expects argument of type `long int', but argument 6 has type `size_t' [-Wformat]
readerfactory.c:124:3: warning: format `%ld' expects argument of type `long int', but argument 7 has type `unsigned int' [-Wformat]

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=5992&op=diff
==============================================================================
--- trunk/PCSC/src/readerfactory.c (original)
+++ trunk/PCSC/src/readerfactory.c Sun Oct  2 15:42:35 2011
@@ -122,7 +122,7 @@
 	if (strlen(readerName) > MAX_READERNAME - sizeof(" 00 00"))
 	{
 		Log3(PCSC_LOG_ERROR,
-			"Reader name too long: %ld chars instead of max %ld",
+			"Reader name too long: %zd chars instead of max %zd",
 			strlen(readerName), MAX_READERNAME - sizeof(" 00 00"));
 		return SCARD_E_INVALID_VALUE;
 	}




More information about the Pcsclite-cvs-commit mailing list