Be slightly more verbose in error message

Including the full path is always useful.

Also use PID_FMT in one more place.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-07-02 12:03:56 -04:00
parent c23218ae25
commit bd68e99bd0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
}