2023-08-01 08:25:33

by Kamalesh Babulal

[permalink] [raw]
Subject: [PATCH] cgroup: clean up printk()

Convert the only printk() to use pr_*() helper. No functional change.

Signed-off-by: Kamalesh Babulal <[email protected]>
---
kernel/cgroup/cgroup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index c7aafb59ecf2..33b586db14ef 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -6086,8 +6086,8 @@ int __init cgroup_init(void)
continue;

if (cgroup1_ssid_disabled(ssid))
- printk(KERN_INFO "Disabling %s control group subsystem in v1 mounts\n",
- ss->name);
+ pr_info("Disabling %s control group subsystem in v1 mounts\n",
+ ss->name);

cgrp_dfl_root.subsys_mask |= 1 << ss->id;

--
2.41.0



2023-08-02 20:55:38

by Tejun Heo

[permalink] [raw]
Subject: Re: [PATCH] cgroup: clean up printk()

On Tue, Aug 01, 2023 at 12:52:14PM +0530, Kamalesh Babulal wrote:
> Convert the only printk() to use pr_*() helper. No functional change.
>
> Signed-off-by: Kamalesh Babulal <[email protected]>

Applied to cgroup/for-6.6.

Thanks.

--
tejun