Hello!
Patch for /branches/martin/0.12 revision 3732 is in attachment: rollback check (ctx->debug >= level) in SC_FUNC_RETURN macro.
Martin, could you please add it?
Thanks
diff -u -r 0.12-r3732/src/libopensc/log.h 0.12-r3732_new/src/libopensc/log.h
--- 0.12-r3732/src/libopensc/log.h      2009-09-14 09:35:14.000000000 +0400
+++ 0.12-r3732_new/src/libopensc/log.h  2009-09-14 15:40:03.000000000 +0400
@@ -59,7 +59,9 @@
 
 #define SC_FUNC_RETURN(ctx, level, r) do { \
        int _ret = r; \
-       sc_do_log(ctx, SC_LOG_TYPE_DEBUG, __FILE__, __LINE__, __FUNCTION__, 
"returning with: %d\n", _ret); \
+       if (ctx->debug >= level) { \
+               sc_do_log(ctx, SC_LOG_TYPE_DEBUG, __FILE__, __LINE__, 
__FUNCTION__, "returning with: %d\n", _ret); \
+       } \
        return _ret; \
 } while(0)
 
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to