From 093bb3280d86e36ecbee4b6dce930ed9c0030b35 Mon Sep 17 00:00:00 2001 From: Ivana Hutarova Varekova Date: Tue, 26 Oct 2010 08:51:57 +0200 Subject: [PATCH] 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 --- src/tools/cgget.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.47.2