cgroups/cgroup: replace logging functions

parent c00683a4
...@@ -24,19 +24,16 @@ struct cgroup_ops *cgroup_init(struct lxc_conf *conf) ...@@ -24,19 +24,16 @@ struct cgroup_ops *cgroup_init(struct lxc_conf *conf)
{ {
struct cgroup_ops *cgroup_ops; struct cgroup_ops *cgroup_ops;
if (!conf) { if (!conf)
ERROR("No valid conf given"); return log_error_errno(NULL, EINVAL, "No valid conf given");
return NULL;
}
cgroup_ops = cgfsng_ops_init(conf); cgroup_ops = cgfsng_ops_init(conf);
if (!cgroup_ops) { if (!cgroup_ops)
ERROR("Failed to initialize cgroup driver"); return log_error_errno(NULL, errno, "Failed to initialize cgroup driver");
return NULL;
}
if (!cgroup_ops->data_init(cgroup_ops)) if (cgroup_ops->data_init(cgroup_ops))
return NULL; return log_error_errno(NULL, errno,
"Failed to initialize cgroup data");
TRACE("Initialized cgroup driver %s", cgroup_ops->driver); TRACE("Initialized cgroup driver %s", cgroup_ops->driver);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment