diff options
Diffstat (limited to 'src/hardware/LMI_PCIBridgeSystemDeviceProvider.c')
-rw-r--r-- | src/hardware/LMI_PCIBridgeSystemDeviceProvider.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hardware/LMI_PCIBridgeSystemDeviceProvider.c b/src/hardware/LMI_PCIBridgeSystemDeviceProvider.c index 6618d08..8beb9ff 100644 --- a/src/hardware/LMI_PCIBridgeSystemDeviceProvider.c +++ b/src/hardware/LMI_PCIBridgeSystemDeviceProvider.c @@ -20,7 +20,7 @@ #include <konkret/konkret.h> #include "LMI_PCIBridgeSystemDevice.h" -#include "LMI_Hardware.h" +#include "utils.h" #include "PCIDev.h" static const CMPIBroker* _cb; @@ -68,7 +68,7 @@ static CMPIStatus LMI_PCIBridgeSystemDeviceEnumInstances( LMI_PCIBridgeRef lmi_dev; const char *ns = KNameSpace(cop); struct pci_dev *dev; - char device_id_str[PCI_DEVID_STR_SIZE]; + char device_id_str[BUFLEN]; for (dev = acc_system_bridge->devices; dev; dev = dev->next) { /* Use only PCI Bridges */ @@ -79,7 +79,7 @@ static CMPIStatus LMI_PCIBridgeSystemDeviceEnumInstances( LMI_PCIBridgeSystemDevice_Init(&lmi_pci_sys_device, _cb, ns); - snprintf(device_id_str, PCI_DEVID_STR_SIZE, "%02x:%02x.%u", + snprintf(device_id_str, BUFLEN, "%02x:%02x.%u", dev->bus, dev->dev, dev->func); LMI_PCIBridgeRef_Init(&lmi_dev, _cb, ns); @@ -87,7 +87,7 @@ static CMPIStatus LMI_PCIBridgeSystemDeviceEnumInstances( lmi_get_system_creation_class_name()); LMI_PCIBridgeRef_Set_SystemName(&lmi_dev, lmi_get_system_name()); LMI_PCIBridgeRef_Set_CreationClassName(&lmi_dev, - LMI_ORGID "_" PCI_BRIDGE_CLASS_NAME); + LMI_PCIBridge_ClassName); LMI_PCIBridgeRef_Set_DeviceID(&lmi_dev, device_id_str); LMI_PCIBridgeSystemDevice_SetObjectPath_GroupComponent( |