Skip to contentSkip to conversation

PCI: Replace printks with appropriate pr_*()

PATCH Applied Yijing Wang 2 participants 2 messages May 28, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: Replace printks with appropriate pr_*()

Replace deprecated printk(KERN_ERR...) with pr_err() in pci-acpi.c

---
 drivers/pci/pci-acpi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/pci/pci-acpi.c +2 -2
index e4b1fb2..6c15d6a 100644
@@ -376,12 +376,12 @@ static int __init acpi_pci_init(void)
 	int ret;
 
 	if (acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_MSI) {
-		printk(KERN_INFO"ACPI FADT declares the system doesn't support MSI, so disable it\n");
+		pr_info("ACPI FADT declares the system doesn't support MSI, so disable it\n");
 		pci_no_msi();
 	}
 
 	if (acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_ASPM) {
-		printk(KERN_INFO"ACPI FADT declares the system doesn't support PCIe ASPM, so disable it\n");
+		pr_info("ACPI FADT declares the system doesn't support PCIe ASPM, so disable it\n");
 		pcie_no_aspm();
 	}
 
Signature · 1 line
1.7.1
maintainer Applied
#1 lore raw
Quoted 6 lines · Yijing Wang

Replace deprecated printk(KERN_ERR...) with pr_err() in pci-acpi.c

---
 drivers/pci/pci-acpi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Applied to pci/misc for v3.11, thanks.

Quoted 23 lines
drivers/pci/pci-acpi.c +2 -3
index e4b1fb2..6c15d6a 100644
@@ -376,12 +376,12 @@ static int __init acpi_pci_init(void)
        int ret;
 
        if (acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_MSI) {
-               printk(KERN_INFO"ACPI FADT declares the system doesn't support MSI, so disable it\n");
+               pr_info("ACPI FADT declares the system doesn't support MSI, so disable it\n");
                pci_no_msi();
        }
 
        if (acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_ASPM) {
-               printk(KERN_INFO"ACPI FADT declares the system doesn't support PCIe ASPM, so disable it\n");
+               pr_info("ACPI FADT declares the system doesn't support PCIe ASPM, so disable it\n");
                pcie_no_aspm();
        }
 
--

1.7.1