1 /* vi: set sw=4 ts=4: */
5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
13 void FAST_FUNC bb_info_msg(const char *s, ...)
15 #ifdef THIS_ONE_DOESNT_DO_SINGLE_WRITE
17 /* va_copy is used because it is not portable
18 * to use va_list p twice */
23 if (logmode & LOGMODE_STDIO) {
25 fputs(msg_eol, stdout);
27 if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG))
28 vsyslog(LOG_INFO, s, p2);
40 used = vasprintf(&msg, s, p);
44 if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG))
45 syslog(LOG_INFO, "%s", msg);
46 if (logmode & LOGMODE_STDIO) {
48 /* used = strlen(msg); - must be true already */
50 full_write(STDOUT_FILENO, msg, used);