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:
Maciej S. Szmigiero 2016-08-23 18:56:45 +02:00 committed by Frank Morgner
parent 5877fd260d
commit f91fc3d338
1 changed files with 1 additions and 9 deletions

View File

@ -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);
}