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:
parent
831d1a539e
commit
6155ae366a
|
@ -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; \
|
||||
if (ctx->debug >= level) { \
|
||||
sc_do_log(ctx, SC_LOG_TYPE_DEBUG, __FILE__, __LINE__, __FUNCTION__, "returning with: %d\n", _ret); \
|
||||
} \
|
||||
return _ret; \
|
||||
} while(0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue