From b8ac0dd14e8dccbdc19195d2f98392226feed9ab Mon Sep 17 00:00:00 2001 From: Oguz Bektas Date: Wed, 12 Dec 2018 10:26:36 +0100 Subject: [PATCH 1/2] fix lxc-cgroup not giving output lxc-cgroup fails to provide any output since the latest version, this should fix it Signed-off-by: Oguz Bektas --- src/lxc/tools/lxc_cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/tools/lxc_cgroup.c b/src/lxc/tools/lxc_cgroup.c index b2cdaf05e..9b838b583 100644 --- a/src/lxc/tools/lxc_cgroup.c +++ b/src/lxc/tools/lxc_cgroup.c @@ -148,7 +148,7 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - INFO("%*s", ret, buffer); + printf("%*s", ret, buffer); } lxc_container_put(c); From 6a5cc5609cac4521893bf4fbc232e1505cc8e707 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 12 Dec 2018 11:47:10 +0100 Subject: [PATCH 2/2] tools: add newline to lxc-cgroup output Signed-off-by: Christian Brauner --- src/lxc/tools/lxc_cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/tools/lxc_cgroup.c b/src/lxc/tools/lxc_cgroup.c index 9b838b583..3cda6cfe2 100644 --- a/src/lxc/tools/lxc_cgroup.c +++ b/src/lxc/tools/lxc_cgroup.c @@ -148,7 +148,7 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - printf("%*s", ret, buffer); + printf("%*s\n", ret, buffer); } lxc_container_put(c);