[OpenWrt-Devel] [PATCH 1/5] ulog: always use stderr for ulog_stdio().

Yousong Zhou yszhou4tech at gmail.com
Thu Jun 4 09:41:38 EDT 2015


stdout is for normal program output.

Signed-off-by: Yousong Zhou <yszhou4tech at gmail.com>
---
 ulog.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/ulog.c b/ulog.c
index 34db0db..38fb1c0 100644
--- 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);
 
-- 
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list