Skip to content

Commit

Permalink
more pci match debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Mar 2, 2017
1 parent a51445c commit a17d783
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pciApp/os/Linux/devLibPCIOSD.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,31 +707,36 @@ linuxDevPCIFindCB(
} else
if(search->vendor!=DEVPCI_ANY_VENDOR &&
search->vendor!=curdev->dev.id.vendor) {
if(devPCIDebug>1) printf(" %u mismatch vendor\n", i);
if(devPCIDebug>1) printf(" %u mismatch vendor %x %x\n", i,
(unsigned)search->vendor, (unsigned)curdev->dev.id.vendor);
continue;
} else
if( search->sub_device!=DEVPCI_ANY_SUBDEVICE &&
search->sub_device!=curdev->dev.id.sub_device
) {
if(devPCIDebug>1) printf(" %u mismatch subdevice\n", i);
if(devPCIDebug>1) printf(" %u mismatch subdevice %x %x\n", i,
(unsigned)search->sub_device, (unsigned)curdev->dev.id.sub_device);
continue;
} else
if( search->sub_vendor!=DEVPCI_ANY_SUBVENDOR &&
search->sub_vendor!=curdev->dev.id.sub_vendor
) {
if(devPCIDebug>1) printf(" %u mismatch subvendor\n", i);
if(devPCIDebug>1) printf(" %u mismatch subvendor %x %x\n", i,
(unsigned)search->sub_vendor, (unsigned)curdev->dev.id.sub_vendor);
continue;
} else
if( search->pci_class!=DEVPCI_ANY_CLASS &&
search->pci_class!=curdev->dev.id.pci_class
) {
if(devPCIDebug>1) printf(" %u mismatch class\n", i);
if(devPCIDebug>1) printf(" %u mismatch class %x %x\n", i,
(unsigned)search->pci_class, (unsigned)curdev->dev.id.pci_class);
continue;
} else
if( search->revision!=DEVPCI_ANY_REVISION &&
search->revision!=curdev->dev.id.revision
) {
if(devPCIDebug>1) printf(" %u mismatch revision\n", i);
if(devPCIDebug>1) printf(" %u mismatch revision %x %x\n", i,
search->revision, curdev->dev.id.revision);
continue;
}
if(devPCIDebug>1)
Expand Down

0 comments on commit a17d783

Please sign in to comment.