summaryrefslogtreecommitdiff
path: root/util/subs.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-06 01:42:44 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-06 01:42:44 +0100
commit7551a684bcbc7de7ac3d2e52eea0f9f812affd18 (patch)
tree469d3c40a1c88fcb3ec208a820f7a0fa93dca81c /util/subs.c
parentc71717661b7ee871e5bc957f314ad8779e85abc6 (diff)
parentee6c7128ed0d58cb1812049463a13bba9cfb31b7 (diff)
Merge tag 'upstream/2.9.7'
Upstream version 2.9.7
Diffstat (limited to 'util/subs.c')
-rw-r--r--util/subs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/subs.c b/util/subs.c
index c5f9308..13e1603 100644
--- a/util/subs.c
+++ b/util/subs.c
@@ -132,6 +132,7 @@ void lprintf(int level, const char * format, ...)
static char logtmp[LOG_MSG_LENGTH];
FILE *fp = stderr;
if (!verbose && (level > loglevel)) return;
+ if (level > LOG_WARN) fp = stdout; /*NOTICE,INFO*/
if (fdbglog && (fplog != NULL)) fp = fplog;
#ifdef WIN32
va_start(vptr, format);
@@ -834,7 +835,7 @@ void WriteSyslog(char *msgbuf)
int level;
sev = find_msg_sev(msgbuf);
switch(sev) {
- case SEV_MIN: level = LOG_WARNING; break;
+ case SEV_MIN: level = LOG_WARN; break;
case SEV_MAJ: level = LOG_ERR; break;
case SEV_CRIT: level = LOG_CRIT; break;
case SEV_INFO: