Skip to content

Commit

Permalink
Send libpcsclite.so logs to stderr instead of stdout
Browse files Browse the repository at this point in the history
Thanks to Jan Palus for the bug report
"libpcsclite should not log errors to stdout"
https://salsa.debian.org/rousseau/PCSC/-/issues/97
  • Loading branch information
LudovicRousseau committed Jul 28, 2024
1 parent 525db63 commit 17d66da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libredirect.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ static void log_line(const char *fmt, ...)
va_list args;

va_start(args, fmt);
vprintf(fmt, args);
printf("\n");
vfprintf(stderr, fmt, args);
fprintf(stderr, "\n");
va_end(args);
}
#else
Expand Down
4 changes: 2 additions & 2 deletions src/spy/libpcscspy.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ static void log_line(const char *fmt, ...)
va_list args;

va_start(args, fmt);
vprintf(fmt, args);
printf("\n");
vfprintf(stderr, fmt, args);
fprintf(stderr, "\n");
va_end(args);
}
#else
Expand Down

0 comments on commit 17d66da

Please sign in to comment.