linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI/ACPI: Change dev_info() to dev_dbg() in the acpi_pci_set_power_state()
@ 2013-07-30  2:32 tianyu.lan
  2013-07-30 13:59 ` Rafael J. Wysocki
  0 siblings, 1 reply; 5+ messages in thread
From: tianyu.lan @ 2013-07-30  2:32 UTC (permalink / raw)
  To: rjw, lenb, bhelgaas; +Cc: Lan Tianyu, linux-acpi, linux-pci, stern

From: Lan Tianyu <tianyu.lan@intel.com>

acpi_pci_set_power_state() produces log of device power state changing.
Now the log is produced by dev_info(). This seems make no sense when user
doesn't open debug option. So change it to dev_dbg() and prevent kernel
log from being.

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=60636
Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
---
 drivers/pci/pci-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c
index c78cc43..fb3522957 100644
--- a/drivers/pci/pci-acpi.c
+++ b/drivers/pci/pci-acpi.c
@@ -210,7 +210,7 @@ static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state)
 	}
 
 	if (!error)
-		dev_info(&dev->dev, "power state changed by ACPI to %s\n",
+		dev_dbg(&dev->dev, "power state changed by ACPI to %s\n",
 			 acpi_power_state_string(state_conv[state]));
 
 	return error;
-- 
1.8.3.2


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

end of thread, other threads:[~2013-07-31 17:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-30  2:32 [PATCH] PCI/ACPI: Change dev_info() to dev_dbg() in the acpi_pci_set_power_state() tianyu.lan
2013-07-30 13:59 ` Rafael J. Wysocki
2013-07-30 15:40   ` Bjorn Helgaas
2013-07-30 23:31     ` Rafael J. Wysocki
2013-07-31 17:26       ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).