summaryrefslogtreecommitdiffstats
path: root/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2013-04-10 17:48:05 +0200
committerPeter Schiffer <pschiffe@redhat.com>2013-04-10 18:00:05 +0200
commite396c654923edb1ad990246a48543324404241ab (patch)
tree15da2a9c99a32df813489ccf66fdc43923384706 /src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c
parent699a49933d2b2690888f719a447682d85c9942b0 (diff)
downloadopenlmi-providers-e396c654923edb1ad990246a48543324404241ab.tar.gz
openlmi-providers-e396c654923edb1ad990246a48543324404241ab.tar.xz
openlmi-providers-e396c654923edb1ad990246a48543324404241ab.zip
Hardware: Added Processor Chip Provider
Added two new providers: * LMI_ProcessorChipProvider * LMI_ProcessorChipRealizesProvider Other Changes: * Added Association qualifier to the association classes in Hardware mof file * Removed initialization for static strings used in snprintf() function
Diffstat (limited to 'src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c')
-rw-r--r--src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c b/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c
index 1af1bad..3d06a65 100644
--- a/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c
+++ b/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c
@@ -156,7 +156,7 @@ static CMPIStatus LMI_AssociatedProcessorCacheMemoryEnumInstances(
cache_level = get_cache_level(dmi_cpu_caches[j].level);
if (cache_level == LMI_AssociatedProcessorCacheMemory_Level_Other) {
- char other_level[LONG_INT_LEN] = "";
+ char other_level[LONG_INT_LEN];
snprintf(other_level, LONG_INT_LEN, "%u",
dmi_cpu_caches[j].level);
LMI_AssociatedProcessorCacheMemory_Set_OtherLevelDescription(
@@ -238,7 +238,7 @@ static CMPIStatus LMI_AssociatedProcessorCacheMemoryEnumInstances(
cache_level = get_cache_level(sysfs_cpu_caches[i].level);
if (cache_level == LMI_AssociatedProcessorCacheMemory_Level_Other) {
- char other_level[LONG_INT_LEN] = "";
+ char other_level[LONG_INT_LEN];
snprintf(other_level, LONG_INT_LEN, "%u",
sysfs_cpu_caches[i].level);
LMI_AssociatedProcessorCacheMemory_Set_OtherLevelDescription(