From fc038beeb80ddb4185487e0e61a76ff9c51ffa2c Mon Sep 17 00:00:00 2001 From: Matthew Wilcox Date: Fri, 14 Aug 2009 14:55:09 +0200 Subject: [PATCH] Make Physical Slot work for multifunction cards I have some multifunction cards in a machine which supports physical slots. Currently, lspci only displays the Physical Slot for the last function in the slot. I believe it should display it for all of them. Signed-off-by: Matthew Wilcox --- lib/sysfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/sysfs.c b/lib/sysfs.c index 4c2c846..1ec4afb 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -238,7 +238,6 @@ sysfs_fill_slots(struct pci_access *a) { d->phy_slot = pci_malloc(a, strlen(entry->d_name) + 1); strcpy(d->phy_slot, entry->d_name); - break; } } fclose(file); -- 2.39.2