The property registerted is BootDevices, so correct it, also
fix the spelling in debug message.
Signed-off-by: Wenchao Xia <xiawenc(a)linux.vnet.ibm.com>
Reviewed-by: John Ferlan <jferlan(a)redhat.com>
---
src/Virt_SettingsDefineCapabilities.c | 4 ++--
src/Virt_VirtualSystemManagementService.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/Virt_SettingsDefineCapabilities.c
b/src/Virt_SettingsDefineCapabilities.c
index b255cf5..3b39a80 100644
--- a/src/Virt_SettingsDefineCapabilities.c
+++ b/src/Virt_SettingsDefineCapabilities.c
@@ -172,7 +172,7 @@ static CMPIStatus _xen_vsmc_to_vssd(virConnectPtr conn,
if (inst == NULL)
goto error;
- CMSetProperty(inst, "BootDevice",
+ CMSetProperty(inst, "BootDevices",
(CMPIValue *)"hda", CMPI_chars);
CMSetProperty(inst, "IsFullVirt",
@@ -211,7 +211,7 @@ static CMPIStatus _kvm_vsmc_to_vssd(virConnectPtr conn,
CMSetProperty(inst, "VirtualSystemIdentifier",
(CMPIValue *)"KVM_guest", CMPI_chars);
- CMSetProperty(inst, "BootDevice",
+ CMSetProperty(inst, "BootDevices",
(CMPIValue *)"hda", CMPI_chars);
inst_list_add(list, inst);
diff --git a/src/Virt_VirtualSystemManagementService.c
b/src/Virt_VirtualSystemManagementService.c
index 96c8a03..6322daf 100644
--- a/src/Virt_VirtualSystemManagementService.c
+++ b/src/Virt_VirtualSystemManagementService.c
@@ -408,7 +408,7 @@ static int bootord_vssd_to_domain(CMPIInstance *inst,
bl_size = CMGetArrayCount(bootlist, &s);
if (s.rc != CMPI_RC_OK) {
- CU_DEBUG("Invalid BootDevice array size");
+ CU_DEBUG("Invalid BootDevices array size");
return 0;
}
@@ -428,7 +428,7 @@ static int bootord_vssd_to_domain(CMPIInstance *inst,
NULL);
if (CMIsNullValue(boot_elem)) {
- CU_DEBUG("Null BootDevice");
+ CU_DEBUG("Null BootDevices");
free(tmp_str_arr);
return 0;
}
--
1.7.1