diff options
author | Denis Vlasenko | 2006-09-07 16:20:03 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-09-07 16:20:03 +0000 |
commit | a9801658ee4b7f5717d145818428452f864e1015 (patch) | |
tree | f85bbdf6cb572751dee639feb9896cad3503b924 /libbb/verror_msg.c | |
parent | b750dec40a4bf013f98658b46925117d9d1d4811 (diff) | |
download | busybox-a9801658ee4b7f5717d145818428452f864e1015.zip busybox-a9801658ee4b7f5717d145818428452f864e1015.tar.gz |
getty, sulogin: convert to using bb_msg for syslog output
Diffstat (limited to 'libbb/verror_msg.c')
-rw-r--r-- | libbb/verror_msg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c index d55da73..988a7a2 100644 --- a/libbb/verror_msg.c +++ b/libbb/verror_msg.c @@ -15,6 +15,7 @@ #include "libbb.h" int logmode = LOGMODE_STDIO; +const char *msg_eol = "\n"; void bb_verror_msg(const char *s, va_list p, const char* strerr) { @@ -28,9 +29,9 @@ void bb_verror_msg(const char *s, va_list p, const char* strerr) fprintf(stderr, "%s: ", bb_applet_name); vfprintf(stderr, s, p); if (!strerr) - fputc('\n', stderr); + fputs(msg_eol, stderr); else - fprintf(stderr, ": %s\n", strerr); + fprintf(stderr, ": %s%s", strerr, msg_eol); } if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG)) { if (!strerr) |