diff --git a/src/libredirect.c b/src/libredirect.c index 3227ea10..4b9153e1 100644 --- a/src/libredirect.c +++ b/src/libredirect.c @@ -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 diff --git a/src/spy/libpcscspy.c b/src/spy/libpcscspy.c index 7719e428..484dffc7 100644 --- a/src/spy/libpcscspy.c +++ b/src/spy/libpcscspy.c @@ -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