aboutsummaryrefslogtreecommitdiff
path: root/libbb/verror_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/verror_msg.c')
-rw-r--r--libbb/verror_msg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c
index ee95be3e3..87efb56b3 100644
--- a/libbb/verror_msg.c
+++ b/libbb/verror_msg.c
@@ -11,6 +11,7 @@
11# include <syslog.h> 11# include <syslog.h>
12#endif 12#endif
13 13
14smallint syslog_level = LOG_ERR;
14smallint logmode = LOGMODE_STDIO; 15smallint logmode = LOGMODE_STDIO;
15const char *msg_eol = "\n"; 16const char *msg_eol = "\n";
16 17
@@ -70,7 +71,7 @@ void FAST_FUNC bb_verror_msg(const char *s, va_list p, const char* strerr)
70 } 71 }
71#if ENABLE_FEATURE_SYSLOG 72#if ENABLE_FEATURE_SYSLOG
72 if (logmode & LOGMODE_SYSLOG) { 73 if (logmode & LOGMODE_SYSLOG) {
73 syslog(LOG_ERR, "%s", msg + applet_len); 74 syslog(syslog_level, "%s", msg + applet_len);
74 } 75 }
75#endif 76#endif
76 free(msg); 77 free(msg);