[pkg-opensc-commit] [opensc] 207/295: Remove logprintf() mingw hack in minidriver
Eric Dorland
eric at moszumanska.debian.org
Sat Jun 24 21:11:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository opensc.
commit f91fc3d338d79af2179da3df7e93d1a796147857
Author: Maciej S. Szmigiero <mail at maciej.szmigiero.name>
Date: Tue Aug 23 18:56:45 2016 +0200
Remove logprintf() mingw hack in minidriver
Minidriver contained a hack since commit 7ef766b7854bc 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 at maciej.szmigiero.name>
---
src/minidriver/minidriver.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/src/minidriver/minidriver.c b/src/minidriver/minidriver.c
index 6724bd4..c0a6fff 100644
--- a/src/minidriver/minidriver.c
+++ b/src/minidriver/minidriver.c
@@ -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);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git
More information about the pkg-opensc-commit
mailing list