su: make /etc/shells check configurable
[oweals/busybox.git] / libbb / vinfo_msg.c
index 82fbda2212b068573810191999665c50f0529328..fa279862583f49feb0eb64f53970eee74f716ef1 100644 (file)
@@ -7,12 +7,8 @@
  * 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 <syslog.h>
 
 void bb_vinfo_msg(const char *s, va_list p)
 {
@@ -22,7 +18,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);