projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reads: fix bug 1078
[oweals/busybox.git]
/
libbb
/
vinfo_msg.c
diff --git
a/libbb/vinfo_msg.c
b/libbb/vinfo_msg.c
index 84825bc76665ae0c9f09a5f00a6bb18af5f8c91e..fa279862583f49feb0eb64f53970eee74f716ef1 100644
(file)
--- a/
libbb/vinfo_msg.c
+++ b/
libbb/vinfo_msg.c
@@
-7,12
+7,8
@@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
-#include <syslog.h>
#include "libbb.h"
#include "libbb.h"
+#include <syslog.h>
void bb_vinfo_msg(const char *s, va_list p)
{
void bb_vinfo_msg(const char *s, va_list p)
{
@@
-22,9
+18,9
@@
void bb_vinfo_msg(const char *s, va_list p)
va_copy(p2, p);
if (logmode & LOGMODE_STDIO) {
vprintf(s, 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))
+ if (ENABLE_FEATURE_SYSLOG &
&
(logmode & LOGMODE_SYSLOG))
vsyslog(LOG_INFO, s, p2);
va_end(p2);
}
vsyslog(LOG_INFO, s, p2);
va_end(p2);
}