summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-05-10 22:42:35 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-05-10 22:42:35 +0900
commitdb6a1af45ed027766332327d45140fbeaae85eb1 (patch)
tree0032f6bd26a9d4f1581f2d44b61aaa50f3faee32 /src/bin
parent6c99fb6c92e6dd2300f6738c1ee6078fffc83212 (diff)
efl debugd - fix evlog writing - dont duplicate empty blocks
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/efl/efl_debugd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/efl/efl_debugd.c b/src/bin/efl/efl_debugd.c
index 79d8aa40f7..d7e7620137 100644
--- a/src/bin/efl/efl_debugd.c
+++ b/src/bin/efl/efl_debugd.c
@@ -110,7 +110,7 @@ _do(Client *c, char *op, unsigned char *d, int size)
110 send_cli(c2->client, "EVON", NULL, 0); 110 send_cli(c2->client, "EVON", NULL, 0);
111 c2->evlog_fetch_timer = ecore_timer_add(0.2, _cb_evlog, c2); 111 c2->evlog_fetch_timer = ecore_timer_add(0.2, _cb_evlog, c2);
112 snprintf(buf, sizeof(buf), "%s/efl_debug_evlog-%i.log", 112 snprintf(buf, sizeof(buf), "%s/efl_debug_evlog-%i.log",
113 getenv("HOME"), c->pid); 113 getenv("HOME"), c2->pid);
114 c2->evlog_file = fopen(buf, "w"); 114 c2->evlog_file = fopen(buf, "w");
115 } 115 }
116 } 116 }
@@ -147,7 +147,7 @@ _do(Client *c, char *op, unsigned char *d, int size)
147 unsigned char *p = d + 4; 147 unsigned char *p = d + 4;
148 Eina_Evlog_Item hitem; 148 Eina_Evlog_Item hitem;
149 149
150 if (c->evlog_file) 150 if ((c->evlog_file) && (end > p))
151 { 151 {
152 hitem.tim = 0.0; 152 hitem.tim = 0.0;
153 hitem.srctim = 0.0; 153 hitem.srctim = 0.0;