From: David Tardon Date: Tue, 7 May 2024 11:30:37 +0000 (+0200) Subject: cgroup-show: pass the right error variable X-Git-Tag: v256-rc2~83^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=422aa53123bfa9b3cf1fb617ed7bdb76d00fe0f4;p=thirdparty%2Fsystemd.git cgroup-show: pass the right error variable --- diff --git a/src/shared/cgroup-show.c b/src/shared/cgroup-show.c index c7af10687df..ef4f3b3b52e 100644 --- a/src/shared/cgroup-show.c +++ b/src/shared/cgroup-show.c @@ -152,7 +152,7 @@ static int show_cgroup_name( if (FLAGS_SET(flags, OUTPUT_CGROUP_ID)) { r = cg_fd_get_cgroupid(fd, &cgroupid); if (r < 0) - log_debug_errno(errno, "Failed to determine cgroup ID of %s, ignoring: %m", path); + log_debug_errno(r, "Failed to determine cgroup ID of %s, ignoring: %m", path); } r = path_extract_filename(path, &b);