summaryrefslogtreecommitdiffstats
path: root/src/hardware/LMI_ProcessorProvider.c
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2013-04-23 15:43:40 +0200
committerPeter Schiffer <pschiffe@redhat.com>2013-04-23 15:43:40 +0200
commit1e4187b50657065445a33148bfb2224005fb0dff (patch)
treebe2a363d74215eab1c98be2776b408dfc98cff23 /src/hardware/LMI_ProcessorProvider.c
parente229f6f4752c30c4fb48c429174f81bbda02242d (diff)
downloadopenlmi-providers-1e4187b50657065445a33148bfb2224005fb0dff.tar.gz
openlmi-providers-1e4187b50657065445a33148bfb2224005fb0dff.tar.xz
openlmi-providers-1e4187b50657065445a33148bfb2224005fb0dff.zip
Hardware: Added Physical Memory Provider
New Providers: * LMI_PhysicalMemoryProvider * LMI_PhysicalMemoryRealizesProvider Other Changes: * Fixed InstanceID in hardware to match the rest of the providers * Removed some unused variables
Diffstat (limited to 'src/hardware/LMI_ProcessorProvider.c')
-rw-r--r--src/hardware/LMI_ProcessorProvider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hardware/LMI_ProcessorProvider.c b/src/hardware/LMI_ProcessorProvider.c
index c14b105..d96c679 100644
--- a/src/hardware/LMI_ProcessorProvider.c
+++ b/src/hardware/LMI_ProcessorProvider.c
@@ -141,7 +141,7 @@ static CMPIStatus LMI_ProcessorEnumInstances(
enabled_cores = dmi_cpus[i].enabled_cores;
stepping = dmi_cpus[i].stepping;
snprintf(instance_id, INSTANCE_ID_LEN,
- ORGID ":" CPU_CLASS_NAME ":%s", dmi_cpus[i].id);
+ ORGID ":" ORGID "_" CPU_CLASS_NAME ":%s", dmi_cpus[i].id);
LMI_Processor_Set_DeviceID(&lmi_cpu, dmi_cpus[i].id);
LMI_Processor_Set_Family(&lmi_cpu, family);
@@ -175,7 +175,7 @@ static CMPIStatus LMI_ProcessorEnumInstances(
char cpu_id[LONG_INT_LEN];
snprintf(cpu_id, LONG_INT_LEN, "%u", i);
snprintf(instance_id, INSTANCE_ID_LEN,
- ORGID ":" CPU_CLASS_NAME ":%s", cpu_id);
+ ORGID ":" ORGID "_" CPU_CLASS_NAME ":%s", cpu_id);
cpustatus = get_cpustatus("Enabled");
enabledstate = get_enabledstate(cpustatus);
if (enabledstate == LMI_Processor_EnabledState_Enabled) {