diff options
author | hj kim <backto.kim@samsung.com> | 2017-12-29 15:42:32 +0900 |
---|---|---|
committer | hj kim <backto.kim@samsung.com> | 2017-12-29 15:42:32 +0900 |
commit | 5223b661e75f9eab28e99a166b06c502dad6b41f (patch) | |
tree | cb7b38d2a8f70d1396bf0993e3b5bb22053fc6bd | |
parent | b6f769d7319c4fce8ed518e2a167caf9243a4e3f (diff) | |
download | media-controller-5223b661e75f9eab28e99a166b06c502dad6b41f.tar.gz media-controller-5223b661e75f9eab28e99a166b06c502dad6b41f.tar.bz2 media-controller-5223b661e75f9eab28e99a166b06c502dad6b41f.zip |
Add debug msg and update debug msgsubmit/tizen/20180102.071056accepted/tizen/unified/20180103.151753
Change-Id: I965f27c09f10f6ac60de4718f6e44f37b60ec735
-rwxr-xr-x | include/media_controller_private.h | 16 | ||||
-rwxr-xr-x | svc/daemon/media_controller_main.c | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/include/media_controller_private.h b/include/media_controller_private.h index 33d21b5..b81cd20 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"<Enter>"); \ } 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 { |