]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
cgroup: fix a mistake in warning message
authorXiubo Li <lixiubo@cmss.chinamobile.com>
Fri, 26 Feb 2016 05:07:38 +0000 (13:07 +0800)
committerTejun Heo <tj@kernel.org>
Sat, 27 Feb 2016 11:33:37 +0000 (06:33 -0500)
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>
kernel/cgroup.c

index ac5451e7c4587d1721e1f2ff7f1e94edda58df94..fcfad82149b17ab800480f3ccfec38024175c01a 100644 (file)
@@ -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,