Message ID | 1369728226-25936-1-git-send-email-wangyijing@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
On Tue, May 28, 2013 at 2:03 AM, Yijing Wang <wangyijing@huawei.com> wrote: > Replace deprecated printk(KERN_ERR...) with pr_err() in pci-acpi.c > > Signed-off-by: Yijing Wang <wangyijing@huawei.com> > --- > drivers/pci/pci-acpi.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) Applied to pci/misc for v3.11, thanks. > diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c > index e4b1fb2..6c15d6a 100644 > --- a/drivers/pci/pci-acpi.c > +++ b/drivers/pci/pci-acpi.c > @@ -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 > > -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index e4b1fb2..6c15d6a 100644 --- a/drivers/pci/pci-acpi.c +++ b/drivers/pci/pci-acpi.c @@ -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(); }
Replace deprecated printk(KERN_ERR...) with pr_err() in pci-acpi.c Signed-off-by: Yijing Wang <wangyijing@huawei.com> --- drivers/pci/pci-acpi.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)