cedric pushed a commit to branch master.

commit dd4a5215d73515510c73b1e55127409c16d7ce69
Author: Cedric Bail <[email protected]>
Date:   Thu Apr 4 23:43:23 2013 +0900

    eina: add some more debug information.
---
 src/lib/eina/eina_cow.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/lib/eina/eina_cow.c b/src/lib/eina/eina_cow.c
index 59cefc8..c1bac93 100644
--- a/src/lib/eina/eina_cow.c
+++ b/src/lib/eina/eina_cow.c
@@ -132,6 +132,11 @@ static int _eina_cow_log_dom = -1;
 #endif
 #define ERR(...) EINA_LOG_DOM_ERR(_eina_cow_log_dom, __VA_ARGS__)
 
+#ifdef INF
+#undef INF
+#endif
+#define INF(...) EINA_LOG_DOM_INFO(_eina_cow_log_dom, __VA_ARGS__)
+
 #ifdef DBG
 #undef DBG
 #endif
@@ -341,6 +346,7 @@ eina_cow_add(const char *name, unsigned int struct_size, 
unsigned int step, cons
    if (tmp && tmp[0])
      choice = tmp;
 
+   INF("Creating Cow '%s' with mempool of type '%s'", name, choice);
    total_size = eina_mempool_alignof(struct_size + EINA_COW_PTR_SIZE);
    cow->pool = eina_mempool_add(choice, name, NULL, total_size, step);
    if (!cow->pool)

-- 

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html

Reply via email to