eina: add some more debug information.
authorCedric Bail <cedric.bail@free.fr>
Thu, 4 Apr 2013 14:43:23 +0000 (23:43 +0900)
committerCedric Bail <cedric.bail@free.fr>
Thu, 4 Apr 2013 14:50:18 +0000 (23:50 +0900)
src/lib/eina/eina_cow.c

index 59cefc86d8865975606ba175d56c57ce7a97843b..c1bac93d71b02b0243851dbe1f6ff6f5e7cd7f65 100644 (file)
@@ -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)