Skip to content

Commit 0026bb2

Browse files
nvax-rbjorn-helgaas
authored andcommitted
PCI: Use pr_warn_once() for ACS parameter parse failure
When the ACS command line parameter cannot be parsed, the kernel skips applying the requested ACS override. This indicates an invalid boot parameter and should not be logged at informational level. Use pr_warn_once() so the message is surfaced as a warning while still avoiding repeated log spam during device enumeration. Signed-off-by: Richard Cheng <icheng@nvidia.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Tushar Dave <tdave@nvidia.com> Link: https://patch.msgid.link/20260312115441.8168-1-icheng@nvidia.com
1 parent 0111d60 commit 0026bb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ static void __pci_config_acs(struct pci_dev *dev, struct pci_acs *caps,
949949

950950
ret = pci_dev_str_match(dev, p, &p);
951951
if (ret < 0) {
952-
pr_info_once("PCI: Can't parse ACS command line parameter\n");
952+
pr_warn_once("PCI: Can't parse ACS command line parameter\n");
953953
break;
954954
} else if (ret == 1) {
955955
/* Found a match */

0 commit comments

Comments
 (0)