[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libvir-list
Subject:    [libvirt] [PATCH 1/8] use virReportErrorHelper instead of xmlGenericError
From:       Christophe Fergeau <teuf () gnome ! org>
Date:       2011-02-13 21:45:17
Message-ID: 1297633524-24147-1-git-send-email-teuf () gnome ! org
[Download RAW message or body]

---
 src/util/hash.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/util/hash.c b/src/util/hash.c
index 5c56dae..e102d7d 100644
--- a/src/util/hash.c
+++ b/src/util/hash.c
@@ -184,9 +184,10 @@ virHashGrow(virHashTablePtr table, int size)
     VIR_FREE(oldtable);
 
 #ifdef DEBUG_GROW
-    xmlGenericError(xmlGenericErrorContext,
-                    "virHashGrow : from %d to %d, %d elems\n", oldsize,
-                    size, nbElem);
+    virReportErrorHelper(NULL, VIR_FROM_NONE, VIR_ERR_OK, __FILE__,
+                         __FUNCTION__, __LINE__,
+                         "virHashGrow : from %d to %d, %d elems",
+                         oldsize, size, nbElem);
 #endif
 
     return (0);
-- 
1.7.4

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic