From: Ivana Varekova Date: Tue, 5 May 2009 08:22:15 +0000 (+0200) Subject: Fix ECGOTHER error message X-Git-Tag: v0.34~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8624b3397ff6dbdbfd44dcd6efe8add0492e2d2d;p=thirdparty%2Flibcgroup.git Fix ECGOTHER error message 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. second version Signed-off-by: Ivana Varekova Acked-by: Dhaval Giani Signed-off-by: Dhaval Giani --- diff --git a/src/api.c b/src/api.c index 02022eba..e29c966c 100644 --- a/src/api.c +++ b/src/api.c @@ -105,7 +105,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", @@ -2180,7 +2180,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;