All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] ACPI: processor: idle: Drop extra prefix from pr_notice()
@ 2021-02-24 18:37 Rafael J. Wysocki
  2021-02-25 14:18 ` Hanjun Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael J. Wysocki @ 2021-02-24 18:37 UTC (permalink / raw)
  To: Linux ACPI; +Cc: LKML, Linux PM, Hanjun Guo

From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

Drop "ACPI: " from the pr_noitice() instance in
acpi_processor_cstate_first_run_checks(), because pr_fmt() causes
that prefix to be added to the message already.

Reported-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 drivers/acpi/processor_idle.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-pm/drivers/acpi/processor_idle.c
===================================================================
--- linux-pm.orig/drivers/acpi/processor_idle.c
+++ linux-pm/drivers/acpi/processor_idle.c
@@ -780,8 +780,8 @@ static inline void acpi_processor_cstate
 	dmi_check_system(processor_power_dmi_table);
 	max_cstate = acpi_processor_cstate_check(max_cstate);
 	if (max_cstate < ACPI_C_STATES_MAX)
-		pr_notice("ACPI: processor limited to max C-state %d\n",
-			  max_cstate);
+		pr_notice("processor limited to max C-state %d\n", max_cstate);
+
 	first_run++;
 
 	if (nocst)




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] ACPI: processor: idle: Drop extra prefix from pr_notice()
  2021-02-24 18:37 [PATCH v1] ACPI: processor: idle: Drop extra prefix from pr_notice() Rafael J. Wysocki
@ 2021-02-25 14:18 ` Hanjun Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Hanjun Guo @ 2021-02-25 14:18 UTC (permalink / raw)
  To: Rafael J. Wysocki, Linux ACPI; +Cc: LKML, Linux PM

On 2021/2/25 2:37, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> 
> Drop "ACPI: " from the pr_noitice() instance in
> acpi_processor_cstate_first_run_checks(), because pr_fmt() causes
> that prefix to be added to the message already.
> 
> Reported-by: Hanjun Guo <guohanjun@huawei.com>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
>   drivers/acpi/processor_idle.c |    4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> Index: linux-pm/drivers/acpi/processor_idle.c
> ===================================================================
> --- linux-pm.orig/drivers/acpi/processor_idle.c
> +++ linux-pm/drivers/acpi/processor_idle.c
> @@ -780,8 +780,8 @@ static inline void acpi_processor_cstate
>   	dmi_check_system(processor_power_dmi_table);
>   	max_cstate = acpi_processor_cstate_check(max_cstate);
>   	if (max_cstate < ACPI_C_STATES_MAX)
> -		pr_notice("ACPI: processor limited to max C-state %d\n",
> -			  max_cstate);
> +		pr_notice("processor limited to max C-state %d\n", max_cstate);
> +
>   	first_run++;
>   
>   	if (nocst)

Reviewed-by: Hanjun Guo <guohanjun@huawei.com>

Thanks
Hanjun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-25 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24 18:37 [PATCH v1] ACPI: processor: idle: Drop extra prefix from pr_notice() Rafael J. Wysocki
2021-02-25 14:18 ` Hanjun Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.