[Pcsclite-cvs-commit] r6274 - /trunk/Drivers/ccid/src/ccid.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Apr 13 13:45:16 UTC 2012


Author: rousseau
Date: Fri Apr 13 13:45:16 2012
New Revision: 6274

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

Fix compiler warning
ccid.c: In function `dump_gemalto_firmware_features':
ccid.c:122:2: warning: format `%ld' expects argument of type `long int',
but argument 6 has type `unsigned int' [-Wformat]

sizeof returns a size_t value with a variable length depending on the
architecture.

Modified:
    trunk/Drivers/ccid/src/ccid.c

Modified: trunk/Drivers/ccid/src/ccid.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ccid.c?rev=6274&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ccid.c (original)
+++ trunk/Drivers/ccid/src/ccid.c Fri Apr 13 13:45:16 2012
@@ -119,7 +119,7 @@
  ****************************************************************************/
 static void dump_gemalto_firmware_features(struct GEMALTO_FIRMWARE_FEATURES *gff)
 {
-	DEBUG_INFO2("Dumping Gemalto firmware features (%ld bytes):",
+	DEBUG_INFO2("Dumping Gemalto firmware features (%zd bytes):",
 		sizeof(struct GEMALTO_FIRMWARE_FEATURES));
 
 #define YESNO(x) (x) ? "yes" : "no"




More information about the Pcsclite-cvs-commit mailing list