diff options
author | Ulrich Weber <uweber.linux@gmail.com> | 2015-11-04 16:33:11 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-11-07 13:36:43 +0100 |
commit | 890ac34c460fbb753bd4303b201d11aebd27a570 (patch) | |
tree | 28d613cda96181bd1bbce9756869a608540f2ab4 | |
parent | 5667e7de137340d4dd0a6e3f3ffcdea65d7bddb6 (diff) | |
download | unitd-890ac34c460fbb753bd4303b201d11aebd27a570.tar unitd-890ac34c460fbb753bd4303b201d11aebd27a570.zip |
syslog: set sane priority values
otherwise LOG_USER/LOG_EMERG is used
Signed-off-by: Ulrich Weber <uw@ocedo.com>
-rw-r--r-- | jail/seccomp.h | 2 | ||||
-rw-r--r-- | rcS.c | 2 | ||||
-rw-r--r-- | trace/trace.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/jail/seccomp.h b/jail/seccomp.h index c44a607..45eede7 100644 --- a/jail/seccomp.h +++ b/jail/seccomp.h @@ -12,7 +12,7 @@ */ #define INFO(fmt, ...) do { \ - syslog(0,"preload-seccomp: "fmt, ## __VA_ARGS__); \ + syslog(LOG_INFO,"preload-seccomp: "fmt, ## __VA_ARGS__); \ fprintf(stderr,"preload-seccomp: "fmt, ## __VA_ARGS__); \ } while (0) @@ -54,7 +54,7 @@ static void pipe_cb(struct ustream *s, int bytes) break; *newline = 0; len = newline + 1 - str; - syslog(0, "%s", str); + syslog(LOG_NOTICE, "%s", str); #ifdef SHOW_BOOT_ON_CONSOLE fprintf(stderr, "%s\n", str); #endif diff --git a/trace/trace.c b/trace/trace.c index 5941f90..b0005b8 100644 --- a/trace/trace.c +++ b/trace/trace.c @@ -53,7 +53,7 @@ } while (0) #define ERROR(fmt, ...) do { \ - syslog(0, "utrace: "fmt, ## __VA_ARGS__); \ + syslog(LOG_ERR, "utrace: "fmt, ## __VA_ARGS__); \ fprintf(stderr, "utrace: "fmt, ## __VA_ARGS__); \ } while (0) |