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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sat Jul 9 11:32:05 UTC 2011


Author: rousseau
Date: Sat Jul  9 11:32:05 2011
New Revision: 5862

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

readerfactory.c: In function `RFInitializeReader':
readerfactory.c:941:3: warning: format `%X' expects argument of type
`unsigned int', but argument 6 has type `LONG' [-Wformat]
readerfactory.c:950:3: warning: format `%X' expects argument of type
`unsigned int', but argument 6 has type `LONG' [-Wformat]
readerfactory.c: In function `RFRemoveReaderHandle':
readerfactory.c:1135:3: warning: format `%X' expects argument of type
`unsigned int', but argument 6 has type `SCARDHANDLE' [-Wformat]
readerfactory.c: In function `RFCheckReaderEventState':
readerfactory.c:1198:3: warning: format `%X' expects argument of type
`unsigned int', but argument 6 has type `SCARDHANDLE' [-Wformat]
readerfactory.c: In function `RFCleanupReaders':
readerfactory.c:1274:5: warning: format `%X' expects argument of type
`unsigned int', but argument 6 has type `LONG' [-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=5862&op=diff
==============================================================================
--- trunk/PCSC/src/readerfactory.c (original)
+++ trunk/PCSC/src/readerfactory.c Sat Jul  9 11:32:05 2011
@@ -938,7 +938,7 @@
 	rv = RFLoadReader(rContext);
 	if (rv != SCARD_S_SUCCESS)
 	{
-		Log2(PCSC_LOG_ERROR, "RFLoadReader failed: 0x%X", rv);
+		Log2(PCSC_LOG_ERROR, "RFLoadReader failed: 0x%lX", rv);
 		return rv;
 	}
 
@@ -947,7 +947,7 @@
 
 	if (rv != SCARD_S_SUCCESS)
 	{
-		Log2(PCSC_LOG_ERROR, "RFBindFunctions failed: 0x%X", rv);
+		Log2(PCSC_LOG_ERROR, "RFBindFunctions failed: 0x%lX", rv);
 		(void)RFUnloadReader(rContext);
 		return rv;
 	}
@@ -1132,7 +1132,7 @@
 	currentHandle = list_seek(&(rContext->handlesList), &hCard);
 	if (NULL == currentHandle)
 	{
-		Log2(PCSC_LOG_CRITICAL, "list_seek failed to locate hCard=%X", hCard);
+		Log2(PCSC_LOG_CRITICAL, "list_seek failed to locate hCard=%lX", hCard);
 		rv = SCARD_E_INVALID_HANDLE;
 		goto end;
 	}
@@ -1195,7 +1195,7 @@
 	if (NULL == currentHandle)
 	{
 		/* Not Found */
-		Log2(PCSC_LOG_CRITICAL, "list_seek failed for hCard 0x%X", hCard);
+		Log2(PCSC_LOG_CRITICAL, "list_seek failed for hCard 0x%lX", hCard);
 		return SCARD_E_INVALID_HANDLE;
 	}
 
@@ -1271,7 +1271,7 @@
 			rv = RFRemoveReader(lpcStripReader, sReadersContexts[i]->port);
 
 			if (rv != SCARD_S_SUCCESS)
-				Log2(PCSC_LOG_ERROR, "RFRemoveReader error: 0x%08X", rv);
+				Log2(PCSC_LOG_ERROR, "RFRemoveReader error: 0x%08lX", rv);
 		}
 	}
 }




More information about the Pcsclite-cvs-commit mailing list