Add back needed debug level check. Thanks to Aleksey Samsonov

git-svn-id: https://www.opensc-project.org/svnp/opensc/branches/martin/0.12@3733 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
martin 2009-09-14 12:04:24 +00:00
parent 831d1a539e
commit 6155ae366a
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ void sc_hex_dump(struct sc_context *ctx, const u8 * buf, size_t len, char *out,
#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)