summaryrefslogtreecommitdiff
path: root/src/core/cgroup.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@fb.com>2016-06-02 13:02:49 -0400
committerSven Eden <yamakuzure@gmx.net>2017-06-16 10:12:59 +0200
commit3b92deb8aee256a1825a151f0b7462e4d3f3f98a (patch)
treea08abb2dcc88137d8a0e6b86cdbf9d36118423c5 /src/core/cgroup.h
parent8165a8803d7eb27502d49dc813b8b3c4e60963eb (diff)
core: pass Unit into cgroup_context_apply() and use log_unit*()
cgroup_context_apply() and friends take CGroupContext and cgroup path as input and has no way of getting back to the associated Unit and thus uses raw cgroup path for logging. This makes the log messages difficult to track down. There's no reason to avoid passing in Unit into these functions. Pass in Unit and use log_unit*() instead. While at it, make cgroup_context_apply(), which has no outside users, static. Also, drop cgroup path from log messages where the path itself isn't too interesting and can be easily obtained from the unit.
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r--src/core/cgroup.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h
index 68cb65007..c778fb618 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -126,7 +126,6 @@ struct CGroupContext {
void cgroup_context_init(CGroupContext *c);
void cgroup_context_done(CGroupContext *c);
void cgroup_context_dump(CGroupContext *c, FILE* f, const char *prefix);
-void cgroup_context_apply(CGroupContext *c, CGroupMask mask, const char *path, ManagerState state);
CGroupMask cgroup_context_get_mask(CGroupContext *c);