yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=5dc71cfc9b8080d84e5a817e96e253d619fb9500

commit 5dc71cfc9b8080d84e5a817e96e253d619fb9500
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Tue Nov 24 11:32:58 2015 +0200

    Add debug messages for updater
---
 src/lib/updater.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/lib/updater.c b/src/lib/updater.c
index c9a5a90..bcb9ec2 100644
--- a/src/lib/updater.c
+++ b/src/lib/updater.c
@@ -5,6 +5,13 @@
 #include "ffi_glue.h"
 #include "updater.h"
 
+#define DEBUGON 1
+#ifdef DEBUGON
+# define updater_debug(fmt, args...) fprintf(stderr, __FILE__":%s/%d : " fmt 
"\n", __FUNCTION__, __LINE__, ##args)
+#else
+# define updater_debug(x...) do { } while (0)
+#endif
+
 static int _init_counter = 0;
 
 static Ecore_Idler *_idler = NULL;
@@ -178,6 +185,9 @@ _update_check(void *data EINA_UNUSED)
                             from = memento_command_new_pointer_get(cmd);
                             to = memento_command_old_pointer_get(cmd);
                          }
+                       updater_debug("Updating %s on %s: %p -> %p",
+                                     memento_type_get_as_string(type),
+                                     eid_name_get_internal(eid), from, to);
                        switch(type)
                          {
                           case MEMENTO_WIDGET:

-- 


Reply via email to