From 21ffaeb283c3ea7e94c0888174f2f55f11ec2dde Mon Sep 17 00:00:00 2001 From: Jonathan Dieter Date: Mon, 21 May 2018 21:34:13 +0300 Subject: [PATCH] Output logging to stderr instead of stdout Signed-off-by: Jonathan Dieter --- src/lib/log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/log.c b/src/lib/log.c index 6409f34..3174751 100644 --- a/src/lib/log.c +++ b/src/lib/log.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include "zck_private.h" @@ -41,7 +42,7 @@ void PUBLIC zck_log(zck_log_type lt, const char *format, ...) { if(lt >= log_level) { va_list args; va_start(args, format); - vprintf(format, args); + vdprintf(STDERR_FILENO, format, args); va_end(args); } } -- 2.30.2