summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-10 03:25:48 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-10 03:25:48 +0100
commitcb01aedc3b4ba70859267159fe716253e3551ec6 (patch)
treec8c84f8ef77a192f2faaaf0e3bee548bea24cb1c /src
parent2822da4fb7f891e5320f02f1d00f64b72221ced4 (diff)
kdbus: downgrade warning if we cannot patch kdbus attach mask to DEBUG if kdbus is not available
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd/sd-bus/bus-kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-kernel.c b/src/libsystemd/sd-bus/bus-kernel.c
index 6cb279ea9d..752c63adb3 100644
--- a/src/libsystemd/sd-bus/bus-kernel.c
+++ b/src/libsystemd/sd-bus/bus-kernel.c
@@ -1864,7 +1864,7 @@ int bus_kernel_fix_attach_mask(void) {
r = write_string_file("/sys/module/kdbus/parameters/attach_flags_mask", buf);
if (r < 0)
return log_full_errno(
- r == -EROFS ? LOG_DEBUG : LOG_WARNING, r,
+ IN_SET(r, -ENOENT, -EROFS) ? LOG_DEBUG : LOG_WARNING, r,
"Failed to write kdbus attach mask: %m");
return 0;