From: Michael Tremer Date: Sat, 14 Dec 2024 14:25:58 +0000 (+0000) Subject: cgroups: Log the entire path if we encountered a writing error X-Git-Tag: 0.9.30~715 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faa9c618161543f1a71fa1cdc0e4e9cc0c29f762;p=pakfire.git cgroups: Log the entire path if we encountered a writing error Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/cgroup.c b/src/libpakfire/cgroup.c index 7e60d0a13..0a6f0bed2 100644 --- a/src/libpakfire/cgroup.c +++ b/src/libpakfire/cgroup.c @@ -240,8 +240,7 @@ static int pakfire_cgroup_write(struct pakfire_cgroup* cgroup, // Open the file fd = openat(cgroup->fd, path, O_WRONLY|O_CLOEXEC); if (fd < 0) { - DEBUG(cgroup->ctx, "Could not open %s/%s for writing: %m\n", - pakfire_cgroup_name(cgroup), path); + DEBUG(cgroup->ctx, "Could not open %s/%s for writing: %m\n", cgroup->path, path); r = -errno; goto ERROR; } @@ -253,8 +252,7 @@ static int pakfire_cgroup_write(struct pakfire_cgroup* cgroup, // Check if content was written okay if (bytes_written < 0) { - DEBUG(cgroup->ctx, "Could not write to %s/%s: %m\n", - pakfire_cgroup_name(cgroup), path); + DEBUG(cgroup->ctx, "Could not write to %s/%s: %m\n", cgroup->path, path); r = -errno; goto ERROR; }