For now the result is eg.: Cgroup generic error, see errno: error message: No such file or directory this patch remove outdated "see errno: " part.
Signed-off-by: Ivana Varekova <[email protected]> --- api.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api.c b/api.c index 4745142..4498210 100644 --- a/api.c +++ b/api.c @@ -98,7 +98,7 @@ char *cgroup_strerror_codes[] = { "Cgroup operation failed", "Cgroup not initialized", "Cgroup trying to set value for control that does not exist", - "Cgroup generic error, see errno", + "Cgroup generic error", "Cgroup values are not equal", "Cgroup controllers are different", "Cgroup parsing failed", @@ -2183,7 +2183,7 @@ char *cgroup_strerror(int code) { assert((code >= ECGROUPNOTCOMPILED) && (code < ECGSENTINEL)); if (code == ECGOTHER) { - snprintf(errtext, MAXLEN, "%s: error message: %s", + snprintf(errtext, MAXLEN, "%s, error message: %s", cgroup_strerror_codes[code % ECGROUPNOTCOMPILED], strerror(cgroup_get_last_errno())); return errtext; ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
