[Pcsclite-git-commit] [PCSC] 01/03: Add new API traces calls

Ludovic Rousseau rousseau at moszumanska.debian.org
Tue Jun 23 15:39:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository PCSC.

commit 7a023f9c8a769f9d1ae6dcdc80e8ced381908a0d
Author: Ludovic Rousseau <ludovic.rousseau at gmail.com>
Date:   Tue Jun 23 13:54:25 2015 +0200

    Add new API traces calls
    
    Add API_TRACE_IN/API_TRACE_OUT for functions:
    - SCardReconnect()
    - SCardBeginTransaction()
    - SCardEndTransaction()
---
 src/winscard_clnt.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/winscard_clnt.c b/src/winscard_clnt.c
index a107847..97f6b7f 100644
--- a/src/winscard_clnt.c
+++ b/src/winscard_clnt.c
@@ -949,6 +949,7 @@ LONG SCardReconnect(SCARDHANDLE hCard, DWORD dwShareMode,
 	CHANNEL_MAP * pChannelMap;
 
 	PROFILE_START
+	API_TRACE_IN("%ld %ld %ld", hCard, dwShareMode, dwPreferredProtocols)
 
 	if (pdwActiveProtocol == NULL)
 		return SCARD_E_INVALID_PARAMETER;
@@ -1018,6 +1019,7 @@ end:
 	(void)pthread_mutex_unlock(&currentContextMap->mMutex);
 
 	PROFILE_END(rv)
+	API_TRACE_OUT("%ld", *pdwActiveProtocol)
 
 	return rv;
 }
@@ -1169,6 +1171,7 @@ LONG SCardBeginTransaction(SCARDHANDLE hCard)
 	CHANNEL_MAP * pChannelMap;
 
 	PROFILE_START
+	API_TRACE_IN("%ld", hCard)
 
 	/*
 	 * Make sure this handle has been opened
@@ -1233,6 +1236,7 @@ LONG SCardBeginTransaction(SCARDHANDLE hCard)
 	(void)pthread_mutex_unlock(&currentContextMap->mMutex);
 
 	PROFILE_END(rv)
+	API_TRACE_OUT("")
 
 	return rv;
 }
@@ -1285,6 +1289,7 @@ LONG SCardEndTransaction(SCARDHANDLE hCard, DWORD dwDisposition)
 	CHANNEL_MAP * pChannelMap;
 
 	PROFILE_START
+	API_TRACE_IN("%ld", hCard)
 
 	/*
 	 * Make sure this handle has been opened
@@ -1342,6 +1347,7 @@ end:
 	(void)pthread_mutex_unlock(&currentContextMap->mMutex);
 
 	PROFILE_END(rv)
+	API_TRACE_OUT("")
 
 	return rv;
 }

-- 
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