summaryrefslogtreecommitdiffstats
path: root/misc-utils/logger.c
diff options
context:
space:
mode:
authorRainer Gerhards2015-03-05 16:44:03 +0100
committerRainer Gerhards2015-03-05 16:44:03 +0100
commitd0b6c4bf8d327cb9ce0dcaaae3fac1bf7c1d32a7 (patch)
tree8ae72421deded269cf1589c2dddd7abaa2ce5d53 /misc-utils/logger.c
parentlib/monotonic: fix compiler warnings (diff)
downloadkernel-qcow2-util-linux-d0b6c4bf8d327cb9ce0dcaaae3fac1bf7c1d32a7.tar.gz
kernel-qcow2-util-linux-d0b6c4bf8d327cb9ce0dcaaae3fac1bf7c1d32a7.tar.xz
kernel-qcow2-util-linux-d0b6c4bf8d327cb9ce0dcaaae3fac1bf7c1d32a7.zip
logger: messages are logged with kern.* priority by default
The default should be user.notice and kern.* should never be used (syslog(3) forbids this). This is a severe regression, as messages are now logged to the wrong bin or not at all. So they get lost and may confuse readers of the kernel bin. regression from 2.25.2 to 2.26
Diffstat (limited to 'misc-utils/logger.c')
-rw-r--r--misc-utils/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/logger.c b/misc-utils/logger.c
index 1e7e2dc10..5ec722efe 100644
--- a/misc-utils/logger.c
+++ b/misc-utils/logger.c
@@ -593,7 +593,7 @@ int main(int argc, char **argv)
struct logger_ctl ctl = {
.fd = -1,
.pid = 0,
- .pri = LOG_NOTICE,
+ .pri = LOG_USER | LOG_NOTICE,
.prio_prefix = 0,
.tag = NULL,
.unix_socket = NULL,