[Pcsclite-cvs-commit] PCSC/src winscard_clnt.c,1.14,1.15
rousseau@quantz.debian.org
rousseau@quantz.debian.org
Tue, 30 Sep 2003 22:13:27 +0200
Update of /cvsroot/pcsclite/PCSC/src
In directory quantz:/tmp/cvs-serv29305
Modified Files:
winscard_clnt.c
Log Message:
send debug to stdout only if the environment variable MUSCLECARD_DEBUG
is defined
Index: winscard_clnt.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/winscard_clnt.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- winscard_clnt.c 8 Sep 2003 08:50:50 -0000 1.14
+++ winscard_clnt.c 30 Sep 2003 20:13:25 -0000 1.15
@@ -160,7 +160,8 @@
/*
* Initialize debug
*/
- DebugLogSetLogType(DEBUGLOG_STDERR_DEBUG);
+ if (getenv("MUSCLECARD_DEBUG"))
+ DebugLogSetLogType(DEBUGLOG_STDERR_DEBUG);
g_rgSCardT0Pci.dwProtocol = SCARD_PROTOCOL_T0;
g_rgSCardT1Pci.dwProtocol = SCARD_PROTOCOL_T1;