File: 0003-logging-Don-t-use-broken-LOG_CONS-syslog-flag.patch

package info (click to toggle)
lirc 0.10.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 8,364 kB
  • sloc: ansic: 26,717; cpp: 9,066; sh: 5,521; python: 4,362; makefile: 1,034; xml: 63
file content (24 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Alec Leamas <leamas.alec@gmail.com>
Date: Fri, 23 Nov 2018 23:04:35 -0500
Subject: [PATCH] logging: Don't use broken LOG_CONS syslog flag.

---
 lib/lirc_log.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/lirc_log.c b/lib/lirc_log.c
index bea357b..900beb3 100644
--- a/lib/lirc_log.c
+++ b/lib/lirc_log.c
@@ -102,9 +102,9 @@ int lirc_log_open(const char* _progname, int _nodaemon, loglevel_t level)
 
 	if (use_syslog) {
 		if (nodaemon)
-			openlog(syslogident, LOG_CONS | LOG_PID | LOG_PERROR, LOG_LOCAL0);
+			openlog(syslogident, LOG_PID | LOG_PERROR, LOG_LOCAL0);
 		else
-			openlog(syslogident, LOG_CONS | LOG_PID, LOG_LOCAL0);
+			openlog(syslogident, LOG_PID, LOG_LOCAL0);
 	} else {
 		lf = fopen(logfile, "a");
 		if (lf == NULL) {