Fix some nit

Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
This commit is contained in:
zhangguanzhang
2020-12-03 19:42:30 +08:00
parent 85b412ddcd
commit 95b4478fb4
2 changed files with 2 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ func moveUnderCgroup(cgroup, subtree string, processes []uint32) error {
}
for _, pid := range bytes.Split(processesData, []byte("\n")) {
if _, err := f.Write(pid); err != nil {
logrus.Warnf("Cannot move process %d to cgroup %q", pid, newCgroup)
logrus.Warnf("Cannot move process %s to cgroup %q", string(pid), newCgroup)
}
}
}