Skip to content

Commit 17d66da

Browse files
Send libpcsclite.so logs to stderr instead of stdout
Thanks to Jan Palus for the bug report "libpcsclite should not log errors to stdout" https://salsa.debian.org/rousseau/PCSC/-/issues/97
1 parent 525db63 commit 17d66da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libredirect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ static void log_line(const char *fmt, ...)
115115
va_list args;
116116

117117
va_start(args, fmt);
118-
vprintf(fmt, args);
119-
printf("\n");
118+
vfprintf(stderr, fmt, args);
119+
fprintf(stderr, "\n");
120120
va_end(args);
121121
}
122122
#else

src/spy/libpcscspy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ static void log_line(const char *fmt, ...)
102102
va_list args;
103103

104104
va_start(args, fmt);
105-
vprintf(fmt, args);
106-
printf("\n");
105+
vfprintf(stderr, fmt, args);
106+
fprintf(stderr, "\n");
107107
va_end(args);
108108
}
109109
#else

0 commit comments

Comments
 (0)