ulog: always use stderr for ulog_stdio().
authorYousong Zhou <yszhou4tech@gmail.com>
Thu, 4 Jun 2015 13:41:38 +0000 (21:41 +0800)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 14 Jun 2015 13:45:57 +0000 (15:45 +0200)
stdout is for normal program output.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
ulog.c

diff --git a/ulog.c b/ulog.c
index 776a0c4e869d47890036e0b7e7fa2b6c5aaf14e5..66aad90298909b215a530c534ee0da02276a84dc 100644 (file)
--- a/ulog.c
+++ b/ulog.c
@@ -105,9 +105,6 @@ static void ulog_stdio(int priority, const char *fmt, va_list ap)
 {
        FILE *out = stderr;
 
-       if (priority == LOG_INFO || priority == LOG_NOTICE)
-               out = stdout;
-
        if (_ulog_ident)
                fprintf(out, "%s: ", _ulog_ident);