fix if (ENABLE_FEATURE_SYSLOG & (...)) - should be &&
This commit is contained in:
parent
049d6b8c08
commit
b750dec40a
@ -32,7 +32,7 @@ void bb_verror_msg(const char *s, va_list p, const char* strerr)
|
||||
else
|
||||
fprintf(stderr, ": %s\n", strerr);
|
||||
}
|
||||
if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG)) {
|
||||
if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG)) {
|
||||
if (!strerr)
|
||||
vsyslog(LOG_ERR, s, p2);
|
||||
else {
|
||||
|
@ -24,7 +24,7 @@ void bb_vinfo_msg(const char *s, va_list p)
|
||||
vprintf(s, p);
|
||||
putchar('\n');
|
||||
}
|
||||
if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG))
|
||||
if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG))
|
||||
vsyslog(LOG_INFO, s, p2);
|
||||
va_end(p2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user