Just update debug msg 68/151468/4
authorHaejeong Kim <backto.kim@samsung.com>
Thu, 21 Sep 2017 03:55:41 +0000 (12:55 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Thu, 21 Sep 2017 06:48:18 +0000 (15:48 +0900)
Change-Id: I70338f5a02dc300278096be679dc947899444f2a

src/media_controller_db.c
svc/daemon/media_controller_main.c
svc/media_controller_svc.c
test/client_test/media_controller_client_test.c

index 7daf093..03b6669 100755 (executable)
@@ -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;
index be6538e..5497301 100755 (executable)
@@ -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);
index bb44001..966ab74 100755 (executable)
@@ -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);
        }
 
index 74b12a7..3f82a71 100755 (executable)
@@ -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;
        }