From: Yu Watanabe Date: Fri, 21 Jul 2023 01:00:27 +0000 (+0900) Subject: udev: downgrade log level when running without cgroup X-Git-Tag: v254-rc3~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01b030c2018a6dcdc7003587fa34aa8acd8dc0e2;p=thirdparty%2Fsystemd.git udev: downgrade log level when running without cgroup The cgroup path is optional, hence it is not necessary to warn the failure loudly. Follow-up for f8371dbd56d27621932ecbe3f5c1246e925fd53a. Closes #28469. --- diff --git a/src/udev/udevd.c b/src/udev/udevd.c index bd22dedf33a..fe29dd94b36 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -1845,7 +1845,7 @@ static int manager_new(Manager **ret, int fd_ctrl, int fd_uevent) { r = cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, 0, &cgroup); if (r < 0) - log_warning_errno(r, "Failed to get cgroup, ignoring: %m"); + log_debug_errno(r, "Failed to get cgroup, ignoring: %m"); else if (endswith(cgroup, "/udev")) { /* If we are in a subcgroup /udev/ we assume it was delegated to us */ log_debug("Running in delegated subcgroup '%s'.", cgroup); manager->cgroup = TAKE_PTR(cgroup);