ulog: always use stderr for ulog_stdio().

stdout is for normal program output.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
Yousong Zhou 2015-06-04 21:41:38 +08:00 committed by Felix Fietkau
parent 4c94515cc8
commit d1c66ef113

3
ulog.c
View file

@ -105,9 +105,6 @@ static void ulog_stdio(int priority, const char *fmt, va_list ap)
{ {
FILE *out = stderr; FILE *out = stderr;
if (priority == LOG_INFO || priority == LOG_NOTICE)
out = stdout;
if (_ulog_ident) if (_ulog_ident)
fprintf(out, "%s: ", _ulog_ident); fprintf(out, "%s: ", _ulog_ident);