X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libbb%2Fvinfo_msg.c;h=fa279862583f49feb0eb64f53970eee74f716ef1;hb=ab24e18c7a32ee1637be19f239e9dd9d7c7f6534;hp=84825bc76665ae0c9f09a5f00a6bb18af5f8c91e;hpb=049d6b8c0812b20c024d714a9008cc94713a6175;p=oweals%2Fbusybox.git diff --git a/libbb/vinfo_msg.c b/libbb/vinfo_msg.c index 84825bc76..fa2798625 100644 --- 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. */ -#include -#include -#include -#include -#include #include "libbb.h" +#include 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); - 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); }