Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

PCI: endpoint: Print the EPF name in the error log of pci_epf_make()

Merely printing the error log without the actual EPF name will not give
much clue to the users about the failure. Hence, print the EPF name also.

Suggested-by: Bjorn Helgaas <helgaas@kernel.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260305071236.23792-1-mani@kernel.org

authored by

Manivannan Sadhasivam and committed by
Manivannan Sadhasivam
ff5387d4 e022f0c7

+2 -1
+2 -1
drivers/pci/endpoint/pci-ep-cfs.c
··· 625 625 epf = pci_epf_create(epf_name); 626 626 if (IS_ERR(epf)) { 627 627 err = PTR_ERR(epf); 628 - pr_err("failed to create endpoint function device: %d\n", err); 628 + pr_err("failed to create endpoint function device (%s): %d\n", 629 + epf_name, err); 629 630 goto free_name; 630 631 } 631 632