Skip to content

Commit 3be31e9

Browse files
ij-intelbjorn-helgaas
authored andcommitted
PCI/ASPM: Convert printk() to pr_*() and add include
Convert printk(KERN_INFO ...) to pr_info() and add the correct include for it. Link: https://lore.kernel.org/r/20230915155752.84640-8-ilpo.jarvinen@linux.intel.com Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent 3c4f460 commit 3be31e9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/pci/pcie/aspm.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <linux/errno.h>
1919
#include <linux/pm.h>
2020
#include <linux/init.h>
21+
#include <linux/printk.h>
2122
#include <linux/slab.h>
2223
#include <linux/time.h>
2324

@@ -1367,10 +1368,10 @@ static int __init pcie_aspm_disable(char *str)
13671368
aspm_policy = POLICY_DEFAULT;
13681369
aspm_disabled = 1;
13691370
aspm_support_enabled = false;
1370-
printk(KERN_INFO "PCIe ASPM is disabled\n");
1371+
pr_info("PCIe ASPM is disabled\n");
13711372
} else if (!strcmp(str, "force")) {
13721373
aspm_force = 1;
1373-
printk(KERN_INFO "PCIe ASPM is forcibly enabled\n");
1374+
pr_info("PCIe ASPM is forcibly enabled\n");
13741375
}
13751376
return 1;
13761377
}

0 commit comments

Comments
 (0)