From: hj kim Date: Wed, 7 Oct 2020 03:56:00 +0000 (+0900) Subject: Reinforce message for debugging X-Git-Tag: accepted/tizen/6.0/unified/20201030.122552~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F10%2F245310%2F2;p=platform%2Fcore%2Fapi%2Fmedia-controller.git Reinforce message for debugging Change-Id: I3f72dba1c9392a0e5f1545cb2bd2f371dc2e1c0c --- diff --git a/svc/media_controller_svc.c b/svc/media_controller_svc.c index 5c7e60d..5c4f674 100644 --- a/svc/media_controller_svc.c +++ b/svc/media_controller_svc.c @@ -357,7 +357,7 @@ static int __mc_service_add_connection(GList **connected_list, mc_comm_msg_s *re mc_retvm_if(((request_msg->priv_type != MC_PRIV_TYPE_SERVER) && (request_msg->priv_type != MC_PRIV_TYPE_CLIENT)), MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "invalid priv_type[%d]", request_msg->priv_type); if (*connected_list != NULL && __mc_service_is_exist_pid(*connected_list, request_msg->pid, request_msg->priv_type)) { - mc_error("Already connected[%d]", g_connection_cnt); + mc_error("Already connected. connection count [%d] pid[%d] priv_type[%d]", g_connection_cnt, request_msg->pid, request_msg->priv_type); return MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER; } @@ -375,7 +375,7 @@ static int __mc_service_add_connection(GList **connected_list, mc_comm_msg_s *re else g_connection_cnt++; - mc_error("[No-error] increased connection count [%d]", g_connection_cnt); + mc_error("[No-error] increased connection count [%d] pid[%d] priv_type[%d]", g_connection_cnt, request_msg->pid, request_msg->priv_type); return MEDIA_CONTROLLER_ERROR_NONE; } @@ -398,12 +398,12 @@ static void __mc_service_remove_connection(GList **connected_list, mc_comm_msg_s mc_debug_fenter(); item_found = g_list_find_custom(*connected_list, (gpointer)request_msg, __find_func); - mc_retm_if(!item_found, "Already disconnected"); + mc_retm_if(!item_found, "Already disconnected pid[%d] priv_type[%d]", request_msg->pid, request_msg->priv_type); *connected_list = g_list_remove_link(*connected_list, item_found); g_list_free_full(item_found, __mc_destroy_connected_apps); - mc_error("[No-error] decreased connection count [%d]", --g_connection_cnt); + mc_error("[No-error] decreased connection count [%d] pid[%d] priv_type[%d]", --g_connection_cnt, request_msg->pid, request_msg->priv_type); } static int __mc_service_add_cmd_to_send(GList **connected_list, mc_comm_msg_s *request_msg) @@ -480,7 +480,7 @@ static int __mc_service_app_dead_handler(int pid, void *data) GList *iter = NULL; mc_app_data_set_t *_app_data = NULL; - mc_secure_debug("Received app_dead signal (pid : %d)", pid); + mc_info("Received app_dead signal (pid : %d)", pid); mc_retvm_if(!_service_data, AUL_R_ERROR, "data is null!"); mc_retvm_if(!_service_data->connected_apps, AUL_R_OK, "No connected application!"); @@ -504,7 +504,7 @@ static int __mc_service_app_dead_handler(int pid, void *data) _service_data->connected_apps = g_list_remove_link(_service_data->connected_apps, iter); g_list_free_full(iter, __mc_destroy_connected_apps); - mc_error("[No-error] decreased connection count [%d]", --g_connection_cnt); + mc_error("[No-error] decreased connection count [%d] pid[%d] priv_type[%d]", --g_connection_cnt, _app_data->pid, _app_data->priv_type); } return AUL_R_OK;