From: Ivana Hutarova Varekova Date: Tue, 26 Oct 2010 06:51:57 +0000 (+0200) Subject: cgget output patch X-Git-Tag: v0.37.1~28^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=093bb3280d86e36ecbee4b6dce930ed9c0030b35;p=thirdparty%2Flibcgroup.git cgget output patch This patch fixes cgget to put newline character to the end of all lines -------------------------------- EXAMPLE: OLD: $ ./cgget -g devices //CBSFxx/Zcz6 //CBSFxx/Zcz6: devices.list: a *:* rwm devices.deny: devices.allow: NEW: $ ./cgget -g devices //CBSFxx/Zcz6 //CBSFxx/Zcz6: devices.list: a *:* rwm devices.deny: devices.allow: Signed-off-by: Ivana Hutarova Varekova Signed-off-by: Jan Safranek Acked-by: Dhaval Giani --- diff --git a/src/tools/cgget.c b/src/tools/cgget.c index f63a98bb..aad222a1 100644 --- a/src/tools/cgget.c +++ b/src/tools/cgget.c @@ -53,6 +53,7 @@ static int display_one_record(char *name, struct cgroup_controller *group_contro group_name, name, &handle, line, LL_MAX); if (ret == ECGEOF) { + printf("\n"); ret = 0; goto read_end; }