Skip to content

Commit 567af70

Browse files
committed
thermal: Replace pr_warn() with pr_warn_once() in user_space_bind()
Use pr_warn_once() instead of pr_warn() to print the user space governor deprecation message in user_space_bind() to reduce the kernel log noise. Fixes: 0275c9f ("thermal/core: Make the userspace governor deprecated") Reported-by: Linus Torvalds <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Daniel Lezcano <[email protected]>
1 parent 96cfe05 commit 567af70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/thermal/gov_user_space.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
static int user_space_bind(struct thermal_zone_device *tz)
1919
{
20-
pr_warn("Userspace governor deprecated: use thermal netlink " \
21-
"notification instead\n");
20+
pr_warn_once("Userspace governor deprecated: use thermal netlink " \
21+
"notification instead\n");
2222

2323
return 0;
2424
}

0 commit comments

Comments
 (0)