The daemon should report something more descriptive than 'libcgroup failed to
initialize rules'.

Signed-off-by: Jan Safranek <[email protected]>
---

 cgrulesengd.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cgrulesengd.c b/cgrulesengd.c
index 9845fdb..45a34ae 100644
--- a/cgrulesengd.c
+++ b/cgrulesengd.c
@@ -739,8 +739,8 @@ int main(int argc, char *argv[])
        /* Initialize libcgroup. */
        ret = cgroup_init();
        if (ret != 0) {
-               fprintf(stderr, "Error: libcgroup initialization failed, %d\n",
-                               ret);
+               fprintf(stderr, "Error: libcgroup initialization failed: %s\n",
+                               cgroup_strerror(ret));
                goto finished;
        }
 
@@ -748,7 +748,7 @@ int main(int argc, char *argv[])
        ret = cgroup_init_rules_cache();
        if (ret != 0) {
                fprintf(stderr, "Error: libcgroup failed to initialize rules"
-                               "cache, %d\n", ret);
+                               "cache: %s\n", cgroup_strerror(ret));
                goto finished;
        }
 


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to