Chameleon

Chameleon Commit Details

Date:2010-02-01 02:22:49 (14 years 2 months ago)
Author:Rekursor
Commit:56
Parents: 55
Message:Another bug fix for pciroot...
Changes:
M/branches/rekursor/i386/libsaio/pci.c

File differences

branches/rekursor/i386/libsaio/pci.c
151151
152152
153153
154
155
156
154
157155
158
159
160
156
157
158
159
161160
162161
163162
end = root_pci_dev;
while (end != pci_dt) {
current = pci_dt;
while (current->parent != end) {
current = current->parent;
}
while (current->parent != end) current = current->parent;
end = current;
sprintf(tmp, "%s/Pci(0x%x,0x%x)",
(current->parent == root_pci_dev) ? "PciRoot(0x0)" : "",
current->dev.bits.dev, current->dev.bits.func);
if (current->parent == root_pci_dev)
sprintf(tmp, "PciRoot(0x%x)/Pci(0x%x,0x%x)", getPciRootUID(), current->dev.bits.dev, current->dev.bits.func);
else
sprintf(tmp, "/Pci(0x%x,0x%x)", current->dev.bits.dev, current->dev.bits.func);
strcat(dev_path, tmp);
}
return dev_path;

Archive Download the corresponding diff file

Revision: 56