From cb01aedc3b4ba70859267159fe716253e3551ec6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 10 Dec 2014 03:25:48 +0100 Subject: [PATCH] kdbus: downgrade warning if we cannot patch kdbus attach mask to DEBUG if kdbus is not available --- src/libsystemd/sd-bus/bus-kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-bus/bus-kernel.c b/src/libsystemd/sd-bus/bus-kernel.c index 6cb279e..752c63a 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; -- 2.7.4