Before: Error: libcgroup initialization failed, 50001
Now:    Error: libcgroup initialization failed, Cgroup is not mounted

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

 src/daemon/cgrulesengd.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/daemon/cgrulesengd.c b/src/daemon/cgrulesengd.c
index b96107d..ffcfc85 100644
--- a/src/daemon/cgrulesengd.c
+++ b/src/daemon/cgrulesengd.c
@@ -1013,23 +1013,23 @@ int main(int argc, char *argv[])
 
        /* Initialize libcgroup. */
        if ((ret = cgroup_init()) != 0) {
-               fprintf(stderr, "Error: libcgroup initialization failed, %d\n",
-                               ret);
+               fprintf(stderr, "Error: libcgroup initialization failed, %s\n",
+                               cgroup_strerror(ret));
                goto finished;
        }
 
        /* Ask libcgroup to load the configuration rules. */
        if ((ret = cgroup_init_rules_cache()) != 0) {
                fprintf(stderr, "Error: libcgroup failed to initialize rules"
-                               "cache, %d\n", ret);
+                               "cache, %s\n", cgroup_strerror(ret));
                goto finished;
        }
 
        /* Now, start the daemon. */
        ret = cgre_start_daemon(logp, facility, daemon, verbosity);
        if (ret < 0) {
-               fprintf(stderr, "Error: Failed to launch the daemon, %d\n",
-                       ret);
+               fprintf(stderr, "Error: Failed to launch the daemon, %s\n",
+                       cgroup_strerror(ret));
                goto finished;
        }
 


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to