node-hid: Correct multiple DEPENDS lines
[feed/packages.git] / net / shadowsocks-libev / patches / 0002-syslog-with-daemon-facility-instead-of-kern-0.patch
1 From afe796ce6e7a4164459009c58d7e60862edb0be3 Mon Sep 17 00:00:00 2001
2 From: Yousong Zhou <yszhou4tech@gmail.com>
3 Date: Tue, 1 Aug 2017 15:21:38 +0800
4 Subject: [PATCH 2/2] syslog with daemon facility instead of kern (0)
5
6 ---
7 src/utils.h | 16 ++++++++--------
8 1 file changed, 8 insertions(+), 8 deletions(-)
9
10 diff --git a/src/utils.h b/src/utils.h
11 index 53f3983..3b624e8 100644
12 --- a/src/utils.h
13 +++ b/src/utils.h
14 @@ -99,14 +99,14 @@ extern int use_syslog;
15 use_tty = isatty(STDERR_FILENO); \
16 } while (0)
17
18 -#define USE_SYSLOG(_ident, _cond) \
19 - do { \
20 - if (!use_syslog && (_cond)) { \
21 - use_syslog = 1; \
22 - } \
23 - if (use_syslog) { \
24 - openlog((_ident), LOG_CONS | LOG_PID, 0); \
25 - } \
26 +#define USE_SYSLOG(_ident, _cond) \
27 + do { \
28 + if (!use_syslog && (_cond)) { \
29 + use_syslog = 1; \
30 + } \
31 + if (use_syslog) { \
32 + openlog((_ident), LOG_CONS | LOG_PID, LOG_DAEMON); \
33 + } \
34 } while (0)
35
36 #define LOGI(format, ...) \
37 --
38 2.12.2
39