summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaejeong Kim <backto.kim@samsung.com>2017-09-21 12:55:41 +0900
committerHaejeong Kim <backto.kim@samsung.com>2017-09-21 15:48:18 +0900
commitc250adb9fc132a043ede91224be30845ae369a11 (patch)
treebca899c09bbf14cd1801e0eb0558e184a214b1cb
parent1972389a51f8b002965d573dc59501175269c662 (diff)
downloadmedia-controller-c250adb9fc132a043ede91224be30845ae369a11.tar.gz
media-controller-c250adb9fc132a043ede91224be30845ae369a11.tar.bz2
media-controller-c250adb9fc132a043ede91224be30845ae369a11.zip
Just update debug msg
Change-Id: I70338f5a02dc300278096be679dc947899444f2a
-rwxr-xr-xsrc/media_controller_db.c2
-rwxr-xr-xsvc/daemon/media_controller_main.c2
-rwxr-xr-xsvc/media_controller_svc.c5
-rwxr-xr-xtest/client_test/media_controller_client_test.c4
4 files changed, 7 insertions, 6 deletions
diff --git a/src/media_controller_db.c b/src/media_controller_db.c
index 7daf093..03b6669 100755
--- a/src/media_controller_db.c
+++ b/src/media_controller_db.c
@@ -637,7 +637,7 @@ int mc_db_foreach_server_list(void *handle, mc_activated_server_cb callback, voi
ret = sqlite3_step(stmt);
if (SQLITE_ROW != ret) {
- mc_error("end of row [%s]", sqlite3_errmsg(db_handle));
+ mc_error("[No-Error] There is no server list [%s]", sqlite3_errmsg(db_handle));
SQLITE3_FINALIZE(stmt);
SQLITE3_SAFE_FREE(sql_str);
return MEDIA_CONTROLLER_ERROR_NONE;
diff --git a/svc/daemon/media_controller_main.c b/svc/daemon/media_controller_main.c
index be6538e..5497301 100755
--- a/svc/daemon/media_controller_main.c
+++ b/svc/daemon/media_controller_main.c
@@ -112,7 +112,7 @@ int main(int argc, char **argv)
}
/* Create media controller service thread */
- svc_thread = g_thread_new("mc_svc_thread", (GThreadFunc)mc_svc_thread, NULL);
+ svc_thread = g_thread_new("mc_svc_thread", (GThreadFunc)mc_svc_thread, NULL);
/* Create Timer */
__mc_main_create_timer(g_mc_timer_id);
diff --git a/svc/media_controller_svc.c b/svc/media_controller_svc.c
index bb44001..966ab74 100755
--- a/svc/media_controller_svc.c
+++ b/svc/media_controller_svc.c
@@ -317,15 +317,16 @@ static int _mc_service_remove_connection(GList **connected_list, mc_comm_msg_s *
return MEDIA_CONTROLLER_ERROR_NONE;
}
mc_error("[No-error] idx [%d]", idx);
+
mc_list_data_set_t *data = g_list_nth_data(*connected_list, idx);
if (data != NULL) {
- mc_error("[No-error] idx [%p]", data);
+ mc_error("[No-error] data [%p]", data);
*connected_list = g_list_remove(*connected_list, data);
if (data->s_data != NULL) {
mc_error("[No-error] s_data [%p], length [%d]", data->s_data, g_list_length(data->s_data));
g_list_free_full(data->s_data, __mc_destroy_data_list);
}
- mc_error("[No-error] data set will be free");
+ mc_error("[No-error] data set will be free");
MC_SAFE_FREE(data);
}
diff --git a/test/client_test/media_controller_client_test.c b/test/client_test/media_controller_client_test.c
index 74b12a7..3f82a71 100755
--- a/test/client_test/media_controller_client_test.c
+++ b/test/client_test/media_controller_client_test.c
@@ -565,7 +565,7 @@ int client_sequential_test(void)
/*Get Latest Server Info*/
ret = mc_client_get_latest_server_info(g_mc_client, &server_name, &server_state);
if (ret != MEDIA_CONTROLLER_ERROR_NONE) {
- g_print("Fail to mc_client_create");
+ g_print("Fail to mc_client_get_latest_server_info");
return ret;
}
@@ -631,7 +631,7 @@ int client_sequential_test(void)
ret = mc_client_destroy(g_mc_client);
if (ret != MEDIA_CONTROLLER_ERROR_NONE) {
- g_print("Fail to mc_client_create\n");
+ g_print("Fail to mc_client_destroy\n");
return ret;
}