diff options
author | Diego Calleja <diegocg@gmail.com> | 2007-11-14 19:58:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-14 21:45:37 -0500 |
commit | cfe36bde59bc1ae868e775ad82386c3acaabb738 (patch) | |
tree | 4010591a81b8e8116f2c5f68bdfdd1290361401a /kernel/cgroup.c | |
parent | 8cd8fa557f439f23baef2158b271667d0c579482 (diff) |
Improve cgroup printks
When I boot with the 'quiet' parameter, I see on the screen:
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 39.036026] Initializing cgroup subsys cpuacct
[ 39.036080] Initializing cgroup subsys debug
[ 39.036118] Initializing cgroup subsys ns
This patch lowers the priority of those messages, adds a "cgroup: " prefix
to another couple of printks and kills the useless reference to the source
file.
Signed-off-by: Diego Calleja <diegocg@gmail.com>
Cc: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 3fe21e19c96e..1a3c23936d43 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * kernel/cgroup.c | ||
3 | * | ||
4 | * Generic process-grouping system. | 2 | * Generic process-grouping system. |
5 | * | 3 | * |
6 | * Based originally on the cpuset system, extracted by Paul Menage | 4 | * Based originally on the cpuset system, extracted by Paul Menage |
@@ -2200,7 +2198,8 @@ static void cgroup_init_subsys(struct cgroup_subsys *ss) | |||
2200 | { | 2198 | { |
2201 | struct cgroup_subsys_state *css; | 2199 | struct cgroup_subsys_state *css; |
2202 | struct list_head *l; | 2200 | struct list_head *l; |
2203 | printk(KERN_ERR "Initializing cgroup subsys %s\n", ss->name); | 2201 | |
2202 | printk(KERN_INFO "Initializing cgroup subsys %s\n", ss->name); | ||
2204 | 2203 | ||
2205 | /* Create the top cgroup state for this subsystem */ | 2204 | /* Create the top cgroup state for this subsystem */ |
2206 | ss->root = &rootnode; | 2205 | ss->root = &rootnode; |
@@ -2273,7 +2272,7 @@ int __init cgroup_init_early(void) | |||
2273 | BUG_ON(!ss->create); | 2272 | BUG_ON(!ss->create); |
2274 | BUG_ON(!ss->destroy); | 2273 | BUG_ON(!ss->destroy); |
2275 | if (ss->subsys_id != i) { | 2274 | if (ss->subsys_id != i) { |
2276 | printk(KERN_ERR "Subsys %s id == %d\n", | 2275 | printk(KERN_ERR "cgroup: Subsys %s id == %d\n", |
2277 | ss->name, ss->subsys_id); | 2276 | ss->name, ss->subsys_id); |
2278 | BUG(); | 2277 | BUG(); |
2279 | } | 2278 | } |
@@ -2605,7 +2604,7 @@ int cgroup_clone(struct task_struct *tsk, struct cgroup_subsys *subsys) | |||
2605 | dentry = lookup_one_len(nodename, parent->dentry, strlen(nodename)); | 2604 | dentry = lookup_one_len(nodename, parent->dentry, strlen(nodename)); |
2606 | if (IS_ERR(dentry)) { | 2605 | if (IS_ERR(dentry)) { |
2607 | printk(KERN_INFO | 2606 | printk(KERN_INFO |
2608 | "Couldn't allocate dentry for %s: %ld\n", nodename, | 2607 | "cgroup: Couldn't allocate dentry for %s: %ld\n", nodename, |
2609 | PTR_ERR(dentry)); | 2608 | PTR_ERR(dentry)); |
2610 | ret = PTR_ERR(dentry); | 2609 | ret = PTR_ERR(dentry); |
2611 | goto out_release; | 2610 | goto out_release; |