chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgroup: add cgroup_bonding_to_string() call
[elogind.git]
/
cgroup.c
diff --git
a/cgroup.c
b/cgroup.c
index 24bbe1aa15637132813c8cf6f747787455ecb3ac..f5c2592ce8276a0760afd4f916435074c0404a74 100644
(file)
--- a/
cgroup.c
+++ b/
cgroup.c
@@
-540,3
+540,14
@@
CGroupBonding *cgroup_bonding_find_list(CGroupBonding *first, const char *contro
return NULL;
}
return NULL;
}
+
+char *cgroup_bonding_to_string(CGroupBonding *b) {
+ char *r;
+
+ assert(b);
+
+ if (asprintf(&r, "%s:%s", b->controller, b->path) < 0)
+ return NULL;
+
+ return r;
+}