ecs LOGS: replace from __TIME__ to get_timeofday() to print time for 24/14324/1
authorJinhyung Choi <jinhyung2.choi@samsung.com>
Fri, 3 Jan 2014 03:23:27 +0000 (12:23 +0900)
committerJinhyung Choi <jinhyung2.choi@samsung.com>
Fri, 3 Jan 2014 03:23:27 +0000 (12:23 +0900)
logging

Change-Id: Ieeb88fa14cd817ff3b16efee4264503232eba215
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
tizen/src/ecs/ecs.h

index 7be06d85face3e11e9139651777116c254ff83cd..f27734c82ca2327f2a9568bd124c58b2a8219111 100644 (file)
@@ -40,6 +40,7 @@
 #include "ecs-json-streamer.h"
 #include "genmsg/ecs.pb-c.h"
 #include "genmsg/ecs_ids.pb-c.h"
+#include "../osutil.h"
 
 #define ECS_VERSION   "1.0"
 
@@ -48,7 +49,7 @@
 #ifdef ECS_DEBUG
 #define LOG(fmt, arg...)    \
     do {    \
-        fprintf(stdout,"[%s-%s:%d] "fmt"\n", __TIME__, __FUNCTION__, __LINE__, ##arg);  \
+        fprintf(stdout,"[%s-%s:%d] "fmt"\n", get_timeofday(), __FUNCTION__, __LINE__, ##arg);  \
     } while (0)
 #else
 #define LOG(fmt, arg...)