[Libvirt-cim] [PATCH 3/4] DevicePool, fix debug print crash

Wenchao Xia xiawenc at linux.vnet.ibm.com
Mon Oct 22 07:38:19 UTC 2012


  Dangerous bug, may trigger strange error, suggest apply it before investigate
any strange bug shown.

Signed-off-by: Wenchao Xia <xiawenc at linux.vnet.ibm.com>
---
 src/Virt_DevicePool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Virt_DevicePool.c b/src/Virt_DevicePool.c
index 202e509..79dc108 100644
--- a/src/Virt_DevicePool.c
+++ b/src/Virt_DevicePool.c
@@ -710,7 +710,7 @@ static bool mempool_set_consumed(CMPIInstance *inst, virConnectPtr conn)
 
                 dom = virDomainLookupByID(conn, domain_ids[i]);
                 if (dom == NULL) {
-                        CU_DEBUG("Cannot connect to domain %n: excluding",
+                        CU_DEBUG("Cannot connect to domain %d: excluding",
                                 domain_ids[i]);
                         continue;
                 }
-- 
1.7.1





More information about the Libvirt-cim mailing list