// 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;
}
// 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;
}