diff options
author | hj kim <backto.kim@samsung.com> | 2020-10-07 12:56:00 +0900 |
---|---|---|
committer | hj kim <backto.kim@samsung.com> | 2020-10-08 03:07:00 +0000 |
commit | 242939d588bfffb01ef2558075af66ff09dddab9 (patch) | |
tree | 38b092f70cf1e0a519bb4fe7b7a044e95954b377 | |
parent | 441a42767a7862f5b542f61e9d9cdab98507507a (diff) | |
download | media-controller-242939d588bfffb01ef2558075af66ff09dddab9.tar.gz media-controller-242939d588bfffb01ef2558075af66ff09dddab9.tar.bz2 media-controller-242939d588bfffb01ef2558075af66ff09dddab9.zip |
Reinforce message for debugging
Change-Id: I3f72dba1c9392a0e5f1545cb2bd2f371dc2e1c0c
-rw-r--r-- | svc/media_controller_svc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svc/media_controller_svc.c b/svc/media_controller_svc.c index d4bce52..fd2ccbb 100644 --- a/svc/media_controller_svc.c +++ b/svc/media_controller_svc.c @@ -384,7 +384,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; } @@ -403,7 +403,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; } @@ -426,12 +426,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) @@ -515,7 +515,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!"); @@ -539,7 +539,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; |