From: Lan Tianyu Date: Tue, 30 Jul 2013 02:32:30 +0000 (+0800) Subject: PCI / ACPI: Use dev_dbg() instead of dev_info() in acpi_pci_set_power_state() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d010e5769a5ab2ae8d2bcb36e77b98172c24d80c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git PCI / ACPI: Use dev_dbg() instead of dev_info() in acpi_pci_set_power_state() acpi_pci_set_power_state() uses dev_info() to print diagnostic messages regarding ACPI power state changes of devices, but that results in too much not really interesting output into the kernel log in some cases. For this reason, change it to use dev_dbg() instead and prevent kernel log from being spammed. [rjw: Changelog] References: https://bugzilla.kernel.org/show_bug.cgi?id=60636 Suggested-by: Alan Stern Signed-off-by: Lan Tianyu Acked-by: Bjorn Helgaas Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index c78cc432edab..fb3522957f01 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;