Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63253ad8 authored by Xiubo Li's avatar Xiubo Li Committed by Tejun Heo
Browse files

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: default avatarXiubo Li <lixiubo@cmss.chinamobile.com>
Acked-by: default avatarZefan Li <lizefan@huawei.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 62716ea0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,