[SmartcardServices-Changes] [40] trunk/SmartCardServices/src/PCSC/dyn_macosx.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jul 30 04:26:39 PDT 2009
Revision: 40
http://trac.macosforge.org/projects/smartcardservices/changeset/40
Author: ludovic.rousseau at gmail.com
Date: 2009-07-30 04:26:39 -0700 (Thu, 30 Jul 2009)
Log Message:
-----------
add error log
Modified Paths:
--------------
trunk/SmartCardServices/src/PCSC/dyn_macosx.c
Modified: trunk/SmartCardServices/src/PCSC/dyn_macosx.c
===================================================================
--- trunk/SmartCardServices/src/PCSC/dyn_macosx.c 2009-07-30 11:24:27 UTC (rev 39)
+++ trunk/SmartCardServices/src/PCSC/dyn_macosx.c 2009-07-30 11:26:39 UTC (rev 40)
@@ -69,10 +69,14 @@
bundle = CFBundleCreate(NULL, bundleURL);
CFRelease(bundleURL);
if (bundle == NULL)
+ {
+ Log1(PCSC_LOG_ERROR, "CFBundleCreate");
return SCARD_F_UNKNOWN_ERROR;
+ }
if (!CFBundleLoadExecutable(bundle))
{
+ Log1(PCSC_LOG_ERROR, "CFBundleLoadExecutable");
CFRelease(bundle);
return SCARD_F_UNKNOWN_ERROR;
}
@@ -91,10 +95,9 @@
{
CFBundleUnloadExecutable(bundle);
CFRelease(bundle);
- } else
- {
- DebugLogA("DYN_CloseLibrary: Cannot unload library.");
}
+ else
+ Log1(PCSC_LOG_ERROR, "Cannot unload library.");
*pvLHandle = 0;
return SCARD_S_SUCCESS;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/smartcardservices-changes/attachments/20090730/f5014a0f/attachment.html>
More information about the SmartcardServices-Changes
mailing list