
# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1199740491 28800 # Node ID d249e26d9d545455465e1f6fc2f03f160f3c8704 # Parent aecc7eb40e68ea06e9e5e3a5b80deac1c34af5eb Replace printf() with CU_DEBUG in ComputerSystemIndication. Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r aecc7eb40e68 -r d249e26d9d54 src/Virt_ComputerSystemIndication.c --- a/src/Virt_ComputerSystemIndication.c Mon Jan 07 13:12:41 2008 -0800 +++ b/src/Virt_ComputerSystemIndication.c Mon Jan 07 13:14:51 2008 -0800 @@ -76,20 +76,20 @@ static bool _lifecycle_indication(const type, NAMESPACE(newsystem)); if (ind == NULL) { - printf("Failed to create ind\n"); + CU_DEBUG("Failed to create ind"); return false; } ind_op = CMGetObjectPath(ind, &s); if (s.rc != CMPI_RC_OK) { - printf("Failed to get ind_op\n"); + CU_DEBUG("Failed to get ind_op"); return false; } CMSetProperty(ind, "AffectedSystem", (CMPIValue *)&newsystem, CMPI_ref); - printf("Delivering Indication: %s\n", + CU_DEBUG("Delivering Indication: %s", CMGetCharPtr(CMObjectPathToString(ind_op, NULL))); CBDeliverIndication(_BROKER, @@ -160,7 +160,7 @@ static bool async_ind(CMPIContext *conte op = CMNewObjectPath(_BROKER, ns, type_cn, &s); } else { - printf("Unknown event type: %i\n", type); + CU_DEBUG("Unknown event type: %i", type); return false; } @@ -189,7 +189,7 @@ static CMPI_THREAD_RETURN lifecycle_thre conn = lv_connect(_BROKER, &s); if (conn == NULL) { - printf("Failed to connect: %s\n", CMGetCharPtr(s.msg)); + CU_DEBUG("Failed to connect: %s", CMGetCharPtr(s.msg)); return NULL; } @@ -271,7 +271,7 @@ static _EI_RTYPE EnableIndications(CMPII lifecycle_enabled = true; pthread_mutex_unlock(&lifecycle_mutex); - printf("ComputerSystemIndication enabled\n"); + CU_DEBUG("ComputerSystemIndication enabled"); _EI_RET(); } @@ -283,7 +283,7 @@ static _EI_RTYPE DisableIndications(CMPI lifecycle_enabled = false; pthread_mutex_unlock(&lifecycle_mutex); - printf("ComputerSystemIndication disabled\n"); + CU_DEBUG("ComputerSystemIndication disabled"); _EI_RET(); }