Update Log
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 27 Jun 2013 05:16:00 +0000 (14:16 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 27 Jun 2013 05:16:00 +0000 (14:16 +0900)
Change-Id: I1298961f2d8260cb24b5d4ff7f1ed6cd98234b1e

include/debug.h
src/client.c
src/livebox.c

index 5021bfa..f9df62d 100644 (file)
@@ -27,8 +27,8 @@
 #endif
 
 #if !defined(FLOG)
-#define DbgPrint(format, arg...)       SECURE_LOGD("[\e[32m%s/%s\e[0m:%d] " format, util_basename(__FILE__), __func__, __LINE__, ##arg)
-#define ErrPrint(format, arg...)       SECURE_LOGE("[\e[32m%s/%s\e[0m:%d] " format, util_basename(__FILE__), __func__, __LINE__, ##arg)
+#define DbgPrint(format, arg...)       SECURE_LOGD(format, ##arg)
+#define ErrPrint(format, arg...)       SECURE_LOGE(format, ##arg)
 #else
 extern FILE *__file_log_fp;
 #define DbgPrint(format, arg...) do { fprintf(__file_log_fp, "[LOG] [\e[32m%s/%s\e[0m:%d] " format, util_basename(__FILE__), __func__, __LINE__, ##arg); fflush(__file_log_fp); } while (0)
index 6fe12f1..92a4c1b 100644 (file)
@@ -566,7 +566,7 @@ static struct packet *master_pd_created(pid_t pid, int handle, const struct pack
                 * pd_create_cb must be reset.
                 * Because, in the create callback, user can call create_pd function again.
                 */
-               DbgPrint("CREATE_PD\n");
+               DbgPrint("PERF_DBOX\n");
                cb(handler, status, cbdata);
        } else if (handler->is_pd_created) {
                lb_invoke_event_handler(handler, LB_EVENT_PD_CREATED);
index 116f838..f96ae44 100644 (file)
@@ -1170,7 +1170,7 @@ EAPI int livebox_create_pd_with_position(struct livebox *handler, double x, doub
        if (!cb)
                cb = default_pd_created_cb;
 
-       DbgPrint("CREATE_PD\n");
+       DbgPrint("PERF_DBOX\n");
        ret = master_rpc_async_request(handler, packet, 0, pd_create_cb, NULL);
        if (ret == LB_STATUS_SUCCESS) {
                handler->pd_created_cb = cb;
@@ -1420,10 +1420,8 @@ EAPI int livebox_content_event(struct livebox *handler, enum content_event_type
                int flag = 1;
 
                if (type & CONTENT_EVENT_MOUSE_MASK) {
-                       if (!handler->lb.mouse_event) {
-                               ErrPrint("Box is not support the mouse event\n");
+                       if (!handler->lb.mouse_event)
                                return LB_STATUS_ERROR_INVALID;
-                       }
 
                        if (!handler->lb.data.fb) {
                                ErrPrint("Handler is not valid\n");