summaryrefslogtreecommitdiffstats
path: root/src/nspawn/nspawn-cgroup.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-07-02 18:03:25 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-07-02 18:03:56 +0200
commitbd68e99bd005de29c2cbf6adfb4c6938ee571f61 (patch)
treebb704c1bcd67a278d6c4e7714244a443cfae71e2 /src/nspawn/nspawn-cgroup.c
parentcore/loopback-setup: make log messages nicer (diff)
downloadsystemd-bd68e99bd005de29c2cbf6adfb4c6938ee571f61.tar.xz
systemd-bd68e99bd005de29c2cbf6adfb4c6938ee571f61.zip
Be slightly more verbose in error message
Including the full path is always useful. Also use PID_FMT in one more place.
Diffstat (limited to '')
-rw-r--r--src/nspawn/nspawn-cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn-cgroup.c b/src/nspawn/nspawn-cgroup.c
index d749756437..fd565c09cd 100644
--- a/src/nspawn/nspawn-cgroup.c
+++ b/src/nspawn/nspawn-cgroup.c
@@ -49,7 +49,7 @@ static int chown_cgroup_path(const char *path, uid_t uid_shift) {
"cgroup.subtree_control")
if (fchownat(fd, fn, uid_shift, uid_shift, 0) < 0)
log_full_errno(errno == ENOENT ? LOG_DEBUG : LOG_WARNING, errno,
- "Failed to chown() cgroup file %s, ignoring: %m", fn);
+ "Failed to chown \"%s/%s\", ignoring: %m", path, fn);
return 0;
}