[PATCH][next] ACPI: processor_throttling: Remove space before \n newline

Colin Ian King posted 1 patch 2 months, 2 weeks ago
drivers/acpi/processor_throttling.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH][next] ACPI: processor_throttling: Remove space before \n newline
Posted by Colin Ian King 2 months, 2 weeks ago
There is a extraneous space before a newline in a pr_warn message.
Remove it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 drivers/acpi/processor_throttling.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c
index d1541a386fbc..f9c2bc1d4a3a 100644
--- a/drivers/acpi/processor_throttling.c
+++ b/drivers/acpi/processor_throttling.c
@@ -235,7 +235,7 @@ static int acpi_processor_throttling_notifier(unsigned long event, void *data)
 		if (pr->throttling_platform_limit > target_state)
 			target_state = pr->throttling_platform_limit;
 		if (target_state >= p_throttling->state_count) {
-			pr_warn("Exceed the limit of T-state \n");
+			pr_warn("Exceed the limit of T-state\n");
 			target_state = p_throttling->state_count - 1;
 		}
 		p_tstate->target_state = target_state;
-- 
2.50.0
Re: [PATCH][next] ACPI: processor_throttling: Remove space before \n newline
Posted by Rafael J. Wysocki 2 months, 2 weeks ago
On Mon, Jul 21, 2025 at 3:50 PM Colin Ian King <colin.i.king@gmail.com> wrote:
>
> There is a extraneous space before a newline in a pr_warn message.
> Remove it.
>
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
> ---
>  drivers/acpi/processor_throttling.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c
> index d1541a386fbc..f9c2bc1d4a3a 100644
> --- a/drivers/acpi/processor_throttling.c
> +++ b/drivers/acpi/processor_throttling.c
> @@ -235,7 +235,7 @@ static int acpi_processor_throttling_notifier(unsigned long event, void *data)
>                 if (pr->throttling_platform_limit > target_state)
>                         target_state = pr->throttling_platform_limit;
>                 if (target_state >= p_throttling->state_count) {
> -                       pr_warn("Exceed the limit of T-state \n");
> +                       pr_warn("Exceed the limit of T-state\n");
>                         target_state = p_throttling->state_count - 1;
>                 }
>                 p_tstate->target_state = target_state;
> --

Applied (as 6.17 material), thanks!