mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
cgroup: fix a mistake in warning message
There is a mistake about the print format name:id <--> %d:%s, which the name is 'char *' type and id is 'int' type. Change "name:id" to "id:name" instead to be consistent with "cgroup_subsys %d:%s". Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com> Acked-by: Zefan Li <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
62716ea0f2
commit
63253ad814
@ -5235,7 +5235,7 @@ int __init cgroup_init_early(void)
|
||||
|
||||
for_each_subsys(ss, i) {
|
||||
WARN(!ss->css_alloc || !ss->css_free || ss->name || ss->id,
|
||||
"invalid cgroup_subsys %d:%s css_alloc=%p css_free=%p name:id=%d:%s\n",
|
||||
"invalid cgroup_subsys %d:%s css_alloc=%p css_free=%p id:name=%d:%s\n",
|
||||
i, cgroup_subsys_name[i], ss->css_alloc, ss->css_free,
|
||||
ss->id, ss->name);
|
||||
WARN(strlen(cgroup_subsys_name[i]) > MAX_CGROUP_TYPE_NAMELEN,
|
||||
|
Loading…
Reference in New Issue
Block a user