From 049d6b8c0812b20c024d714a9008cc94713a6175 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 7 Sep 2006 06:02:39 +0000 Subject: Add CONFIG_FEATURE_SYSLOG which controls whether bb_xx_msg will ever try to send output to syslog. Add "select CONFIG_FEATURE_SYSLOG" to relevant applets. This allows to omit syslog code if we do not have any syslog-capable applets in the build. --- libbb/vinfo_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb/vinfo_msg.c') diff --git a/libbb/vinfo_msg.c b/libbb/vinfo_msg.c index e8776e5f4..84825bc76 100644 --- a/libbb/vinfo_msg.c +++ b/libbb/vinfo_msg.c @@ -24,7 +24,7 @@ void bb_vinfo_msg(const char *s, va_list p) vprintf(s, p); putchar('\n'); } - if (logmode & LOGMODE_SYSLOG) + if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG)) vsyslog(LOG_INFO, s, p2); va_end(p2); } -- cgit v1.2.3