From ec83c728ad7159b4ebde0bae4c3ab20226845a1e Mon Sep 17 00:00:00 2001 From: aet Date: Thu, 24 Jan 2002 12:56:08 +0000 Subject: [PATCH] Silence debug messages by default for upcoming release README update git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@190 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/pkcs11/README | 5 ----- src/pkcs11/pkcs11-global.c | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pkcs11/README b/src/pkcs11/README index 73766851..8f190150 100644 --- a/src/pkcs11/README +++ b/src/pkcs11/README @@ -33,8 +33,3 @@ Notes Netscape seems to show more information about the security module than mozilla. Otherwise all stuff is untested. - -Please note that the library currently writes debug log to -/tmp/opensc-pkcs11.log. - - diff --git a/src/pkcs11/pkcs11-global.c b/src/pkcs11/pkcs11-global.c index ea557c94..c3073f13 100644 --- a/src/pkcs11/pkcs11-global.c +++ b/src/pkcs11/pkcs11-global.c @@ -40,7 +40,11 @@ CK_RV C_Initialize(CK_VOID_PTR pReserved) rc = sc_establish_context(&context); if (rc != 0) return CKR_DEVICE_ERROR; +#ifdef DEBUG context->use_std_output = 1; +#else + context->use_std_output = 0; +#endif pool_initialize(&session_pool); for (i=0; i