diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-07 06:02:39 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-07 06:02:39 +0000 |
commit | e127e2ca517616346ffaf278001ed3482e64924f (patch) | |
tree | af95f506cc36561eef6204a1bd915bc0467cdc24 /libbb | |
parent | ee335c07b1dbfb174c3d3dfd7b45b1e3624527f0 (diff) | |
download | busybox-w32-e127e2ca517616346ffaf278001ed3482e64924f.tar.gz busybox-w32-e127e2ca517616346ffaf278001ed3482e64924f.tar.bz2 busybox-w32-e127e2ca517616346ffaf278001ed3482e64924f.zip |
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.
git-svn-id: svn://busybox.net/trunk/busybox@16063 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/verror_msg.c | 2 | ||||
-rw-r--r-- | libbb/vinfo_msg.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c index 237547d1d..be206e477 100644 --- a/libbb/verror_msg.c +++ b/libbb/verror_msg.c | |||
@@ -32,7 +32,7 @@ void bb_verror_msg(const char *s, va_list p, const char* strerr) | |||
32 | else | 32 | else |
33 | fprintf(stderr, ": %s\n", strerr); | 33 | fprintf(stderr, ": %s\n", strerr); |
34 | } | 34 | } |
35 | if (logmode & LOGMODE_SYSLOG) { | 35 | if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG)) { |
36 | if (!strerr) | 36 | if (!strerr) |
37 | vsyslog(LOG_ERR, s, p2); | 37 | vsyslog(LOG_ERR, s, p2); |
38 | else { | 38 | else { |
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) | |||
24 | vprintf(s, p); | 24 | vprintf(s, p); |
25 | putchar('\n'); | 25 | putchar('\n'); |
26 | } | 26 | } |
27 | if (logmode & LOGMODE_SYSLOG) | 27 | if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG)) |
28 | vsyslog(LOG_INFO, s, p2); | 28 | vsyslog(LOG_INFO, s, p2); |
29 | va_end(p2); | 29 | va_end(p2); |
30 | } | 30 | } |