[Pcsclite-git-commit] [PCSC] 10/10: SCardDisconnect(): fix compiler warnings
Ludovic Rousseau
rousseau at moszumanska.debian.org
Fri Aug 5 15:48:06 UTC 2016
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository PCSC.
commit daae836ffc4a8ac0199a1aa16a0282806cbd4af4
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Fri Aug 5 16:44:51 2016 +0200
SCardDisconnect(): fix compiler warnings
winscard.c: In function ‘SCardDisconnect’:
winscard.c:912:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘LONG’ [-Wformat=]
Log3(PCSC_LOG_ERROR, "Error powering down card: %d 0x%04X",
^
winscard.c:912:5: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 7 has type ‘LONG’ [-Wformat=]
---
src/winscard.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/winscard.c b/src/winscard.c
index d133d5b..671f841 100644
--- a/src/winscard.c
+++ b/src/winscard.c
@@ -909,7 +909,7 @@ LONG SCardDisconnect(SCARDHANDLE hCard, DWORD dwDisposition)
rContext->readerState->readerState = SCARD_PRESENT;
else
{
- Log3(PCSC_LOG_ERROR, "Error powering down card: %d 0x%04X",
+ Log3(PCSC_LOG_ERROR, "Error powering down card: %ld 0x%04lX",
rv, rv);
if (rv == SCARD_W_REMOVED_CARD)
rContext->readerState->readerState = SCARD_ABSENT;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git
More information about the Pcsclite-cvs-commit
mailing list