From: Borislav Petkov <bp@suse.de>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Linux ACPI <linux-acpi@vger.kernel.org>,
Linux PM <linux-pm@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ACPI: power: Use dev_dbg() to print some messages
Date: Fri, 11 Jun 2021 19:02:03 +0200 [thread overview]
Message-ID: <YMOW4CrbhVCa8l5Q@zn.tnic> (raw)
In-Reply-To: <2601165.mvXUDI8C0e@kreacher>
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!
--
Regards/Gruss,
Boris.
SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg
prev parent reply other threads:[~2021-06-11 17:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-11 16:58 [PATCH] ACPI: power: Use dev_dbg() to print some messages Rafael J. Wysocki
2021-06-11 17:02 ` Borislav Petkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YMOW4CrbhVCa8l5Q@zn.tnic \
--to=bp@suse.de \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox