From: hj kim Date: Fri, 29 Dec 2017 06:42:32 +0000 (+0900) Subject: Add debug msg and update debug msg X-Git-Tag: submit/tizen_4.0/20180103.024722^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d226768a7e2551870f899883fd824947cb294aa;p=platform%2Fcore%2Fapi%2Fmedia-controller.git Add debug msg and update debug msg Change-Id: I965f27c09f10f6ac60de4718f6e44f37b60ec735 --- diff --git a/include/media_controller_private.h b/include/media_controller_private.h index b42019d..2ff4198 100755 --- a/include/media_controller_private.h +++ b/include/media_controller_private.h @@ -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""); \ } while (0) diff --git a/svc/daemon/media_controller_main.c b/svc/daemon/media_controller_main.c index a32c6c0..6b5cc50 100755 --- a/svc/daemon/media_controller_main.c +++ b/svc/daemon/media_controller_main.c @@ -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 {