summaryrefslogtreecommitdiffstats
path: root/src/shared/cgroup-show.c
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2024-05-07 13:30:37 +0200
committerDavid Tardon <dtardon@redhat.com>2024-05-07 14:02:08 +0200
commit422aa53123bfa9b3cf1fb617ed7bdb76d00fe0f4 (patch)
treef79de2d2beda3d1667b7ee2a2ad2fa3aaaa07141 /src/shared/cgroup-show.c
parentmanager: pass the right error variable (diff)
downloadsystemd-422aa53123bfa9b3cf1fb617ed7bdb76d00fe0f4.tar.xz
systemd-422aa53123bfa9b3cf1fb617ed7bdb76d00fe0f4.zip
cgroup-show: pass the right error variable
Diffstat (limited to '')
-rw-r--r--src/shared/cgroup-show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/cgroup-show.c b/src/shared/cgroup-show.c
index c7af10687d..ef4f3b3b52 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);