Remove logprintf() mingw hack in minidriver
Minidriver contained a hack since commit 7ef766b785
in 2010 to print to
debug file directly under mingw (instead of using normal OpenSC logging
system), as there was problem with "%S" format specifier then.
However, on recent mingw versions "%S" format works fine so let's remove
this hack.
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
This commit is contained in:
parent
5877fd260d
commit
f91fc3d338
|
@ -276,16 +276,8 @@ static void logprintf(PCARD_DATA pCardData, int level, _Printf_format_string_ co
|
|||
va_start(arg, format);
|
||||
if(pCardData != NULL) {
|
||||
vs = (VENDOR_SPECIFIC*)(pCardData->pvVendorSpecific);
|
||||
if(vs != NULL && vs->ctx != NULL) {
|
||||
#ifdef _MSC_VER
|
||||
if(vs != NULL && vs->ctx != NULL)
|
||||
sc_do_log_noframe(vs->ctx, level, format, arg);
|
||||
#else
|
||||
/* FIXME: trouble in vsprintf with %S arg under mingw32 */
|
||||
if(vs->ctx->debug>=level) {
|
||||
vfprintf(vs->ctx->debug_file, format, arg);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
va_end(arg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue