# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1199740279 28800
# Node ID 87362d52572b34fd880d28b76bdfb021a507cbd6
# Parent 7281142059a1c419405addd2ba351c68fb719ff0
Replace printfs with CU_DEBUG in ComputerSystem.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 7281142059a1 -r 87362d52572b src/Virt_ComputerSystem.c
--- a/src/Virt_ComputerSystem.c Mon Jan 07 13:10:40 2008 -0800
+++ b/src/Virt_ComputerSystem.c Mon Jan 07 13:11:19 2008 -0800
@@ -482,15 +482,15 @@ static CMPIStatus state_change_enable(vi
switch (info->state) {
case VIR_DOMAIN_SHUTOFF:
- printf("Start domain\n");
+ CU_DEBUG("Start domain");
ret = virDomainCreate(dom);
break;
case VIR_DOMAIN_PAUSED:
- printf("Unpause domain\n");
+ CU_DEBUG("Unpause domain");
ret = virDomainResume(dom);
break;
default:
- printf("Cannot go to enabled state from %i\n",
info->state);
+ CU_DEBUG("Cannot go to enabled state from %i",
info->state);
cu_statusf(_BROKER, &s,
CMPI_RC_ERR_FAILED,
"Invalid state transition");
@@ -511,11 +511,11 @@ static CMPIStatus state_change_disable(v
switch (info->state) {
case VIR_DOMAIN_RUNNING:
- printf("Stop domain\n");
+ CU_DEBUG("Stop domain");
ret = virDomainShutdown(dom);
break;
default:
- printf("Cannot go to disabled state from %i\n",
info->state);
+ CU_DEBUG("Cannot go to disabled state from %i",
info->state);
cu_statusf(_BROKER, &s,
CMPI_RC_ERR_FAILED,
"Invalid state transition");
@@ -536,7 +536,7 @@ static CMPIStatus state_change_pause(vir
switch (info->state) {
case VIR_DOMAIN_RUNNING:
- printf("Pause domain\n");
+ CU_DEBUG("Pause domain");
ret = virDomainSuspend(dom);
break;
default:
@@ -560,7 +560,7 @@ static CMPIStatus state_change_reboot(vi
switch (info->state) {
case VIR_DOMAIN_RUNNING:
- printf("Reboot domain\n");
+ CU_DEBUG("Reboot domain");
ret = virDomainReboot(dom, 0);
break;
default:
@@ -584,7 +584,7 @@ static CMPIStatus state_change_reset(vir
switch (info->state) {
case VIR_DOMAIN_RUNNING:
- printf("Reset domain\n");
+ CU_DEBUG("Reset domain");
ret = domain_reset(dom);
break;
default: