summaryrefslogtreecommitdiffstats
path: root/src/hardware/LMI_PCIDeviceSystemDeviceProvider.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardware/LMI_PCIDeviceSystemDeviceProvider.c')
-rw-r--r--src/hardware/LMI_PCIDeviceSystemDeviceProvider.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hardware/LMI_PCIDeviceSystemDeviceProvider.c b/src/hardware/LMI_PCIDeviceSystemDeviceProvider.c
index 84279c8..99a8ca2 100644
--- a/src/hardware/LMI_PCIDeviceSystemDeviceProvider.c
+++ b/src/hardware/LMI_PCIDeviceSystemDeviceProvider.c
@@ -20,7 +20,7 @@
#include <konkret/konkret.h>
#include "LMI_PCIDeviceSystemDevice.h"
-#include "LMI_Hardware.h"
+#include "utils.h"
#include "PCIDev.h"
static const CMPIBroker* _cb;
@@ -68,7 +68,7 @@ static CMPIStatus LMI_PCIDeviceSystemDeviceEnumInstances(
LMI_PCIDeviceRef 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_dev->devices; dev; dev = dev->next) {
/* Ignore PCI Bridges */
@@ -79,7 +79,7 @@ static CMPIStatus LMI_PCIDeviceSystemDeviceEnumInstances(
LMI_PCIDeviceSystemDevice_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_PCIDeviceRef_Init(&lmi_dev, _cb, ns);
@@ -87,7 +87,7 @@ static CMPIStatus LMI_PCIDeviceSystemDeviceEnumInstances(
lmi_get_system_creation_class_name());
LMI_PCIDeviceRef_Set_SystemName(&lmi_dev, lmi_get_system_name());
LMI_PCIDeviceRef_Set_CreationClassName(&lmi_dev,
- LMI_ORGID "_" PCI_DEVICE_CLASS_NAME);
+ LMI_PCIDevice_ClassName);
LMI_PCIDeviceRef_Set_DeviceID(&lmi_dev, device_id_str);
LMI_PCIDeviceSystemDevice_SetObjectPath_GroupComponent(