Am Montag 19 April 2010 15:18:08 schrieb Viktor TARASOV:
> Instead of change proposed in this mail, I would propose the following:
> if (verbose > 1)   {
>     ctx->debug = verbose;
>     ctx->debug_file = stderr;
> }

what about:
if (verbose > 1)
        ctx->debug = verbose;
else
        verbose = ctx->debug;
if (verbose > 1)
        ctx->debug_file = stderr;

i.e. if there is a debug setting in opensc.conf, copy it.

also, why code this in every tool?

we could as well extenend sc_context_create with an extra
parameter and let this opensc function handle it. that
way you can create debug messages in this early stage too,
which is now a bit limited.

Regards, Andreas
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to