public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cgroup: Fix indent for /proc/cgroups
@ 2009-07-03  8:05 Gui Jianfeng
  2009-07-03  8:20 ` Li Zefan
  2009-07-03 15:37 ` Paul Menage
  0 siblings, 2 replies; 6+ messages in thread
From: Gui Jianfeng @ 2009-07-03  8:05 UTC (permalink / raw)
  To: Li Zefan, Paul Menage; +Cc: linux-kernel

Currently, /proc/cgroups outputs is fairly ugly as following,
#subsys_name    hierarchy       num_cgroups     enabled
cpuset  0       1       1
debug   0       1       1
ns      0       1       1

indent it in a good-looking way.
#subsys_name    hierarchy       num_cgroups     enabled
cpuset          0               1               1
debug           0               1               1
ns              0               1               1


Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
---
 kernel/cgroup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 3737a68..99fc160 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -2963,7 +2963,7 @@ static int proc_cgroupstats_show(struct seq_file *m, void *v)
 	mutex_lock(&cgroup_mutex);
 	for (i = 0; i < CGROUP_SUBSYS_COUNT; i++) {
 		struct cgroup_subsys *ss = subsys[i];
-		seq_printf(m, "%s\t%lu\t%d\t%d\n",
+		seq_printf(m, "%s\t\t%lu\t\t%d\t\t%d\n",
 			   ss->name, ss->root->subsys_bits,
 			   ss->root->number_of_cgroups, !ss->disabled);
 	}
-- 
1.5.4.rc3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-03 15:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-03  8:05 [PATCH] cgroup: Fix indent for /proc/cgroups Gui Jianfeng
2009-07-03  8:20 ` Li Zefan
2009-07-03  8:37   ` Gui Jianfeng
2009-07-03  8:43     ` Li Zefan
2009-07-03  9:00       ` Gui Jianfeng
2009-07-03 15:37 ` Paul Menage

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox