[PATCH] Downgrade printk that complains about unsupported PCI PM caps

From: David Howells
Date: Wed Jan 12 2005 - 14:32:35 EST



The attached patch downgrades to KERN_DEBUG level the printk that issues a
notification that an unsupported version of the PCI power management registers
has been encountered by pci_set_power_state().

Signed-Off-By: David Howells <dhowells@xxxxxxxxxx>
---
warthog>diffstat -p1 pci-pm-printk-2611rc1.diff
drivers/pci/pci.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -uNrp /warthog/kernels/linux-2.6.11-rc1/drivers/pci/pci.c linux-2.6.11-rc1-frv/drivers/pci/pci.c
--- /warthog/kernels/linux-2.6.11-rc1/drivers/pci/pci.c 2005-01-12 19:08:56.272808059 +0000
+++ linux-2.6.11-rc1-frv/drivers/pci/pci.c 2005-01-12 19:12:43.944820438 +0000
@@ -269,7 +269,7 @@ pci_set_power_state(struct pci_dev *dev,

pci_read_config_word(dev,pm + PCI_PM_PMC,&pmc);
if ((pmc & PCI_PM_CAP_VER_MASK) != 2) {
- printk(KERN_WARNING
+ printk(KERN_DEBUG
"PCI: %s has unsupported PM cap regs version (%u)\n",
dev->slot_name, pmc & PCI_PM_CAP_VER_MASK);
return -EIO;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/