From 47abb8bfef9f2b0b03b7d343593609806fd37949 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 26 Aug 2008 06:08:24 +0000 Subject: [PATCH] partially reverted the latest change git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27206 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/listdev/listdev.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bin/listdev/listdev.c b/src/bin/listdev/listdev.c index d7ba5dc01f..c52fa1adef 100644 --- a/src/bin/listdev/listdev.c +++ b/src/bin/listdev/listdev.c @@ -151,9 +151,9 @@ display_device(device_node_cookie *node, uint8 level) int bus = 0; // PCI attributes - uint16 pci_class_base_id = 0; - uint16 pci_class_sub_id = 0; - uint16 pci_class_api_id = 0; + uint8 pci_class_base_id = 0; + uint8 pci_class_sub_id = 0; + uint8 pci_class_api_id = 0; uint16 pci_vendor_id = 0; uint16 pci_device_id = 0; uint16 pci_subsystem_vendor_id = 0; @@ -185,13 +185,13 @@ display_device(device_node_cookie *node, uint8 level) scsi_path_id = attr.value.ui8; } else if (!strcmp(attr.name, B_DEVICE_TYPE) && attr.type == B_UINT16_TYPE) - pci_class_base_id = attr.value.ui16; + pci_class_base_id = attr.value.ui8; else if (!strcmp(attr.name, B_DEVICE_SUB_TYPE) && attr.type == B_UINT16_TYPE) - pci_class_sub_id = attr.value.ui16; + pci_class_sub_id = attr.value.ui8; else if (!strcmp(attr.name, B_DEVICE_INTERFACE) && attr.type == B_UINT16_TYPE) - pci_class_api_id = attr.value.ui16; + pci_class_api_id = attr.value.ui8; else if (!strcmp(attr.name, B_DEVICE_VENDOR_ID) && attr.type == B_UINT16_TYPE) pci_vendor_id = attr.value.ui16;