[Pcsclite-cvs-commit] r5993 - /trunk/PCSC/src/hotplug_linux.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Oct 4 07:51:33 UTC 2011
Author: rousseau
Date: Tue Oct 4 07:51:33 2011
New Revision: 5993
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5993
Log:
Use %zd instead of %ld for a size_t integer
Fix a warning when compiling on a 32-bits system:
hotplug_linux.c: In function 'HPReadBundleValues':
hotplug_linux.c:188: warning: format '%ld' expects type 'long int', but argument 6 has type 'unsigned int'
Modified:
trunk/PCSC/src/hotplug_linux.c
Modified: trunk/PCSC/src/hotplug_linux.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/hotplug_linux.c?rev=5993&op=diff
==============================================================================
--- trunk/PCSC/src/hotplug_linux.c (original)
+++ trunk/PCSC/src/hotplug_linux.c Tue Oct 4 07:51:33 2011
@@ -185,7 +185,7 @@
if (listCount >= sizeof(bundleTracker)/sizeof(bundleTracker[0]))
{
- Log2(PCSC_LOG_CRITICAL, "Too many readers declared. Maximum is %ld", sizeof(bundleTracker)/sizeof(bundleTracker[0]));
+ Log2(PCSC_LOG_CRITICAL, "Too many readers declared. Maximum is %zd", sizeof(bundleTracker)/sizeof(bundleTracker[0]));
goto end;
}
}
More information about the Pcsclite-cvs-commit
mailing list