aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/ippool/ippool/always_syslog.patch
blob: e475276c0e29c5ee3c631d902017d492607e8b04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ippool: always log to syslog

Even when running in the foreground, send log messages to syslog.

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Joe Slater <jslater@windriver.com>


--- a/ippool_main.c
+++ b/ippool_main.c
@@ -251,9 +251,8 @@ void ippool_vlog(int level, const char *
 	if (ippool_opt_nodaemon) {
 		vprintf(fmt, ap);
 		printf("\n");
-	} else {
-		vsyslog(level, fmt, ap);
 	}
+	vsyslog(level, fmt, ap);
 	DMALLOC_VMESSAGE(fmt, ap);
 }