]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
logger output always goes to stderr now.
authorRoy Marples <roy@marples.name>
Mon, 24 Oct 2016 19:24:38 +0000 (19:24 +0000)
committerRoy Marples <roy@marples.name>
Mon, 24 Oct 2016 19:24:38 +0000 (19:24 +0000)
common.c

index 890851e9416d078b4f3d1e0479616bd83686a23a..645a5dc486057678b41f52983fd99171770ab87a 100644 (file)
--- a/common.c
+++ b/common.c
@@ -183,8 +183,8 @@ logger(struct dhcpcd_ctx *ctx, int pri, const char *fmt, ...)
 #ifdef HAVE_PRINTF_M
                errno = serrno;
 #endif
-               vfprintf(pri <= LOG_ERR ? stderr : stdout, fmt, vac);
-               fputc('\n', pri <= LOG_ERR ? stderr : stdout);
+               vfprintf(stderr, fmt, vac);
+               fputc('\n', stderr);
                va_end(vac);
        }