diff options
Diffstat (limited to 'src/hardware/LMI_PCIBridgeProvider.c')
-rw-r--r-- | src/hardware/LMI_PCIBridgeProvider.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/hardware/LMI_PCIBridgeProvider.c b/src/hardware/LMI_PCIBridgeProvider.c index e84bea3..ee8aa50 100644 --- a/src/hardware/LMI_PCIBridgeProvider.c +++ b/src/hardware/LMI_PCIBridgeProvider.c @@ -22,7 +22,6 @@ #include "LMI_PCIBridge.h" #include "LMI_Hardware.h" #include "PCIDev.h" -#include "globals.h" CMPIUint16 get_bridge_type(const char *bridge_type); @@ -40,7 +39,7 @@ static void LMI_PCIBridgeInitialize(const CMPIContext *ctx) | PCI_FILL_ROM_BASE | PCI_FILL_CLASS | PCI_FILL_CAPS) != 0) { - error("Failed to access the PCI bus."); + lmi_error("Failed to access the PCI bus."); abort(); } } @@ -131,7 +130,7 @@ static CMPIStatus LMI_PCIBridgeEnumInstances( snprintf(device_id_str, PCI_DEVID_STR_SIZE, "%02x:%02x.%u", dev->bus, dev->dev, dev->func); snprintf(instance_id, INSTANCE_ID_LEN, - ORGID ":" ORGID "_" PCI_BRIDGE_CLASS_NAME ":%s", device_id_str); + LMI_ORGID ":" LMI_ORGID "_" PCI_BRIDGE_CLASS_NAME ":%s", device_id_str); LMI_PCIBridge_Init(&lmi_dev, _cb, ns); @@ -139,7 +138,7 @@ static CMPIStatus LMI_PCIBridgeEnumInstances( get_system_creation_class_name()); LMI_PCIBridge_Set_SystemName(&lmi_dev, get_system_name()); LMI_PCIBridge_Set_CreationClassName(&lmi_dev, - ORGID "_" PCI_BRIDGE_CLASS_NAME); + LMI_ORGID "_" PCI_BRIDGE_CLASS_NAME); LMI_PCIBridge_Set_Caption(&lmi_dev, "This object represents one PCI bridge contained in system."); |