getty, sulogin: convert to using bb_msg for syslog output

This commit is contained in:
Denis Vlasenko
2006-09-07 16:20:03 +00:00
parent b750dec40a
commit a9801658ee
14 changed files with 96 additions and 114 deletions

View File

@@ -22,7 +22,7 @@ void bb_vinfo_msg(const char *s, va_list p)
va_copy(p2, p);
if (logmode & LOGMODE_STDIO) {
vprintf(s, p);
putchar('\n');
fputs(msg_eol, stdout);
}
if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG))
vsyslog(LOG_INFO, s, p2);