Add debug msg and update debug msg 33/165633/1 accepted/tizen/4.0/unified/20180111.043124 submit/tizen_4.0/20180103.024722 tizen_4.0.IoT.p2_release
authorhj kim <backto.kim@samsung.com>
Fri, 29 Dec 2017 06:42:32 +0000 (15:42 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 3 Jan 2018 02:38:39 +0000 (11:38 +0900)
Change-Id: I965f27c09f10f6ac60de4718f6e44f37b60ec735

include/media_controller_private.h
svc/daemon/media_controller_main.c

index b42019dc7d8d819512b818d5e1be6649ee583711..2ff41989a384b0d65111e6fa3f80dac2cba4044d 100755 (executable)
@@ -54,10 +54,26 @@ extern "C" {
                LOGI(FONT_COLOR_GREEN""fmt""FONT_COLOR_RESET, ##arg);     \
        } while (0)
 
+#define mc_warning(fmt, arg...) do { \
+               LOGW(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg);     \
+       } while (0)
+
 #define mc_error(fmt, arg...) do { \
                LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg);     \
        } while (0)
 
+#define mc_secure_debug(fmt, arg...) do { \
+               SECURE_LOGD(FONT_COLOR_CYAN""fmt""FONT_COLOR_RESET, ##arg);     \
+       } while (0)
+
+#define mc_secure_warning(fmt, arg...) do { \
+               SECURE_LOGW(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg);     \
+       } while (0)
+
+#define mc_secure_error(fmt, arg...) do { \
+               SECURE_LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg);     \
+       } while (0)
+
 #define mc_debug_fenter() do { \
                LOGD(FONT_COLOR_RESET"<Enter>");     \
        } while (0)
index a32c6c06259ee39dcd87bfec52f861e20d0ca0d2..6b5cc5001366d93fa14657cf9f2f9728ec3f7b43 100755 (executable)
@@ -34,7 +34,7 @@ gboolean __mc_main_check_connection(gpointer user_data)
        int connection_cnt = 0;
        connection_cnt = mc_svc_get_connection_cnt();
        if ((connection_cnt == -1) || (connection_cnt > 0)) {
-               mc_error("[No-error] Timer is Called but there is working Process");
+               mc_error("[No-error] Timer is Called but there is working Process, connection_cnt = %d", connection_cnt);
 
                __mc_main_create_timer(g_mc_timer_id);
        } else {