]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI: endpoint: Print the EPF name in the error log of pci_epf_make()
authorManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Thu, 5 Mar 2026 07:12:34 +0000 (12:42 +0530)
committerManivannan Sadhasivam <mani@kernel.org>
Thu, 26 Mar 2026 17:00:43 +0000 (22:30 +0530)
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
drivers/pci/endpoint/pci-ep-cfs.c

index 076d115db02b3f01f173fe344e1a4428d5217c78..a19db22b7991e384d996474647d689e2aa8f7201 100644 (file)
@@ -625,7 +625,8 @@ static struct config_group *pci_epf_make(struct config_group *group,
        epf = pci_epf_create(epf_name);
        if (IS_ERR(epf)) {
                err = PTR_ERR(epf);
-               pr_err("failed to create endpoint function device: %d\n", err);
+               pr_err("failed to create endpoint function device (%s): %d\n",
+                       epf_name, err);
                goto free_name;
        }