cgroup-show: pass the right error variable

This commit is contained in:
David Tardon
2024-05-07 13:30:37 +02:00
parent af1690cfcc
commit 422aa53123

View File

@@ -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);