From dedcfa480ee21b9bb87964eb1e2665fe6a200b4c Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Mon, 16 Feb 2009 13:34:12 +0000 Subject: This patch store the last errno value to last_errno value and add cgroup_add_last_errno procedure to show this number. Use this procedure to show the cause of the error when ECGOTHER is returned. [balbir@linux.vnet.ibm.com: fix last_errno in config.c] Signed-off-by: Ivana Varekova Signed-off-by: Balbir Singh git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@329 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- cgconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgconfig.c') diff --git a/cgconfig.c b/cgconfig.c index 043678a..cc33ad9 100644 --- a/cgconfig.c +++ b/cgconfig.c @@ -60,7 +60,7 @@ int main(int argc, char *argv[]) ret = cgroup_config_load_config(filename); if (ret) { printf("Loading configuration file %s " - "failed, error: %s\n", filename, + "failed\n%s\n", filename, cgroup_strerror(ret)); exit(3); } -- cgit