From 8624b3397ff6dbdbfd44dcd6efe8add0492e2d2d Mon Sep 17 00:00:00 2001 From: Ivana Varekova Date: Tue, 5 May 2009 10:22:15 +0200 Subject: 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 --- src/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api.c') diff --git a/src/api.c b/src/api.c index 02022eb..e29c966 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; -- cgit