patch by PieterPanman which fixes bug #2666. Thanks!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27195 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-08-25 12:19:40 +00:00
parent df5d28d4d9
commit b6ebf6d8ae

View File

@ -151,9 +151,9 @@ display_device(device_node_cookie *node, uint8 level)
int bus = 0;
// PCI attributes
uint8 pci_class_base_id = 0;
uint8 pci_class_sub_id = 0;
uint8 pci_class_api_id = 0;
uint16 pci_class_base_id = 0;
uint16 pci_class_sub_id = 0;
uint16 pci_class_api_id = 0;
uint16 pci_vendor_id = 0;
uint16 pci_device_id = 0;
uint16 pci_subsystem_vendor_id = 0;
@ -184,14 +184,14 @@ display_device(device_node_cookie *node, uint8 level)
&& attr.type == B_UINT8_TYPE) {
scsi_path_id = attr.value.ui8;
} else if (!strcmp(attr.name, B_DEVICE_TYPE)
&& attr.type == B_UINT8_TYPE)
pci_class_base_id = attr.value.ui8;
&& attr.type == B_UINT16_TYPE)
pci_class_base_id = attr.value.ui16;
else if (!strcmp(attr.name, B_DEVICE_SUB_TYPE)
&& attr.type == B_UINT8_TYPE)
pci_class_sub_id = attr.value.ui8;
&& attr.type == B_UINT16_TYPE)
pci_class_sub_id = attr.value.ui16;
else if (!strcmp(attr.name, B_DEVICE_INTERFACE)
&& attr.type == B_UINT8_TYPE)
pci_class_api_id = attr.value.ui8;
&& attr.type == B_UINT16_TYPE)
pci_class_api_id = attr.value.ui16;
else if (!strcmp(attr.name, B_DEVICE_VENDOR_ID)
&& attr.type == B_UINT16_TYPE)
pci_vendor_id = attr.value.ui16;