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
@@ -840,7 +840,7 @@ int cg_attach(const char *controller, const char *path, pid_t pid) {
if (r > 0 && streq(controller, SYSTEMD_CGROUP_CONTROLLER)) {
r = cg_attach(SYSTEMD_CGROUP_CONTROLLER_LEGACY, path, pid);
if (r < 0)
log_warning_errno(r, "Failed to attach %d to compat systemd cgroup %s: %m", pid, path);
log_warning_errno(r, "Failed to attach "PID_FMT" to compat systemd cgroup %s: %m", pid, path);
}
return 0;