# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1199740240 28800
# Node ID 7281142059a1c419405addd2ba351c68fb719ff0
# Parent abcb596636c9530009756b1aa1e8900a2f01d10e
Replace printf() with CU_DEBUG in EAFP.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r abcb596636c9 -r 7281142059a1 src/Virt_ElementAllocatedFromPool.c
--- a/src/Virt_ElementAllocatedFromPool.c Mon Jan 07 11:42:40 2008 -0800
+++ b/src/Virt_ElementAllocatedFromPool.c Mon Jan 07 13:10:40 2008 -0800
@@ -135,7 +135,7 @@ static int filter_by_pool(struct inst_li
if ((dev_id == NULL) || (cn == NULL))
continue;
- printf("Device %hhi:%s", type, dev_id);
+ CU_DEBUG("Device %hhi:%s", type, dev_id);
poolid = pool_member_of(_BROKER, cn, type, dev_id);
if (poolid && STREQ(poolid, _poolid))
@@ -162,11 +162,11 @@ static int devs_from_pool(uint16_t type,
if (conn == NULL)
return 0;
- printf("Connected\n");
+ CU_DEBUG("Connected");
count = get_domain_list(conn, &doms);
- printf("Got %i domains\n", count);
+ CU_DEBUG("Got %i domains", count);
for (i = 0; i < count; i++) {
const char *name;
@@ -179,11 +179,11 @@ static int devs_from_pool(uint16_t type,
/* FIXME: Get VIRT_DEV_ type here */
dom_devices(_BROKER, doms[i], ns, type, &tmp);
- printf("Got devices\n");
+ CU_DEBUG("Got devices");
filter_by_pool(list, &tmp, type, poolid);
- printf("Filtered\n");
+ CU_DEBUG("Filtered");
inst_list_free(&tmp);
virDomainFree(doms[i]);