diff mbox series

ACPI: power: Use dev_dbg() to print some messages

Message ID 2601165.mvXUDI8C0e@kreacher (mailing list archive)
State Awaiting Upstream
Delegated to: Rafael Wysocki
Headers show
Series ACPI: power: Use dev_dbg() to print some messages | expand

Commit Message

Rafael J. Wysocki June 11, 2021, 4:58 p.m. UTC
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

The messages printed by acpi_resume_power_resources() and
acpi_turn_off_unused_power_resources() are not important enough to be
printed with pr_info(), so use dev_dbg() instead of it to get rid of
some noise in the kernel log.

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

Comments

Borislav Petkov June 11, 2021, 5:02 p.m. UTC | #1
On Fri, Jun 11, 2021 at 06:58:48PM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> 
> The messages printed by acpi_resume_power_resources() and
> acpi_turn_off_unused_power_resources() are not important enough to be
> printed with pr_info(), so use dev_dbg() instead of it to get rid of
> some noise in the kernel log.
> 
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
>  drivers/acpi/power.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> Index: linux-pm/drivers/acpi/power.c
> ===================================================================
> --- linux-pm.orig/drivers/acpi/power.c
> +++ linux-pm/drivers/acpi/power.c
> @@ -1004,7 +1004,7 @@ void acpi_resume_power_resources(void)
>  
>  		if (state == ACPI_POWER_RESOURCE_STATE_OFF
>  		    && resource->ref_count) {
> -			dev_info(&resource->device.dev, "Turning ON\n");
> +			dev_dbg(&resource->device.dev, "Turning ON\n");
>  			__acpi_power_on(resource);
>  		}
>  
> @@ -1034,7 +1034,7 @@ void acpi_turn_off_unused_power_resource
>  		 */
>  		if (!resource->ref_count &&
>  		    resource->state != ACPI_POWER_RESOURCE_STATE_OFF) {
> -			dev_info(&resource->device.dev, "Turning OFF\n");
> +			dev_dbg(&resource->device.dev, "Turning OFF\n");
>  			__acpi_power_off(resource);
>  		}

Acked-by: Borislav Petkov <bp@suse.de>

Thx!
diff mbox series

Patch

Index: linux-pm/drivers/acpi/power.c
===================================================================
--- linux-pm.orig/drivers/acpi/power.c
+++ linux-pm/drivers/acpi/power.c
@@ -1004,7 +1004,7 @@  void acpi_resume_power_resources(void)
 
 		if (state == ACPI_POWER_RESOURCE_STATE_OFF
 		    && resource->ref_count) {
-			dev_info(&resource->device.dev, "Turning ON\n");
+			dev_dbg(&resource->device.dev, "Turning ON\n");
 			__acpi_power_on(resource);
 		}
 
@@ -1034,7 +1034,7 @@  void acpi_turn_off_unused_power_resource
 		 */
 		if (!resource->ref_count &&
 		    resource->state != ACPI_POWER_RESOURCE_STATE_OFF) {
-			dev_info(&resource->device.dev, "Turning OFF\n");
+			dev_dbg(&resource->device.dev, "Turning OFF\n");
 			__acpi_power_off(resource);
 		}