summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-17 19:56:06 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-17 19:57:46 +0100
commit445ea9be520b9549aee45d0b6427cf48b446987f (patch)
treed30716269ef9b4f3f37eec6fa2f2156cd6ee897a /src
parent97b9372db178baadb121634fb4ae12bda8969cfe (diff)
journald: downgrade warning message when /dev/kmsg does not exist
Diffstat (limited to 'src')
-rw-r--r--src/journal/journald-kmsg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journald-kmsg.c b/src/journal/journald-kmsg.c
index bc42548cd1..1730a23a97 100644
--- a/src/journal/journald-kmsg.c
+++ b/src/journal/journald-kmsg.c
@@ -398,7 +398,8 @@ int server_open_dev_kmsg(Server *s) {
s->dev_kmsg_fd = open("/dev/kmsg", O_RDWR|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
if (s->dev_kmsg_fd < 0) {
- log_warning("Failed to open /dev/kmsg, ignoring: %m");
+ log_full(errno == ENOENT ? LOG_DEBUG : LOG_WARNING,
+ "Failed to open /dev/kmsg, ignoring: %m");
return 0;
}