1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 02:21:44 +03:00

kdbus: downgrade warning if we cannot patch kdbus attach mask to DEBUG if kdbus is not available

This commit is contained in:
Lennart Poettering 2014-12-10 03:25:48 +01:00
parent 2822da4fb7
commit cb01aedc3b

View File

@ -1864,7 +1864,7 @@ int bus_kernel_fix_attach_mask(void) {
r = write_string_file("/sys/module/kdbus/parameters/attach_flags_mask", buf); r = write_string_file("/sys/module/kdbus/parameters/attach_flags_mask", buf);
if (r < 0) if (r < 0)
return log_full_errno( 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"); "Failed to write kdbus attach mask: %m");
return 0; return 0;