diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-07 16:20:03 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-07 16:20:03 +0000 |
commit | ab24234b35e47e3d44b6fcda07d75a763dc2b33b (patch) | |
tree | f85bbdf6cb572751dee639feb9896cad3503b924 /libbb/verror_msg.c | |
parent | 309147b2fe10e10c52e8bcec8ba83546c198e320 (diff) | |
download | busybox-w32-ab24234b35e47e3d44b6fcda07d75a763dc2b33b.tar.gz busybox-w32-ab24234b35e47e3d44b6fcda07d75a763dc2b33b.tar.bz2 busybox-w32-ab24234b35e47e3d44b6fcda07d75a763dc2b33b.zip |
getty, sulogin: convert to using bb_msg for syslog output
git-svn-id: svn://busybox.net/trunk/busybox@16065 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 d55da73ff..988a7a293 100644 --- a/libbb/verror_msg.c +++ b/libbb/verror_msg.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include "libbb.h" | 15 | #include "libbb.h" |
16 | 16 | ||
17 | int logmode = LOGMODE_STDIO; | 17 | int logmode = LOGMODE_STDIO; |
18 | const char *msg_eol = "\n"; | ||
18 | 19 | ||
19 | void bb_verror_msg(const char *s, va_list p, const char* strerr) | 20 | void bb_verror_msg(const char *s, va_list p, const char* strerr) |
20 | { | 21 | { |
@@ -28,9 +29,9 @@ void bb_verror_msg(const char *s, va_list p, const char* strerr) | |||
28 | fprintf(stderr, "%s: ", bb_applet_name); | 29 | fprintf(stderr, "%s: ", bb_applet_name); |
29 | vfprintf(stderr, s, p); | 30 | vfprintf(stderr, s, p); |
30 | if (!strerr) | 31 | if (!strerr) |
31 | fputc('\n', stderr); | 32 | fputs(msg_eol, stderr); |
32 | else | 33 | else |
33 | fprintf(stderr, ": %s\n", strerr); | 34 | fprintf(stderr, ": %s%s", strerr, msg_eol); |
34 | } | 35 | } |
35 | if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG)) { | 36 | if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG)) { |
36 | if (!strerr) | 37 | if (!strerr) |