From 9914f5d60b4e74737e374040f5f3355f87071fd9 Mon Sep 17 00:00:00 2001 From: hj kim Date: Mon, 18 Dec 2017 17:45:33 +0900 Subject: [PATCH] Just update debug msg Change-Id: I0c58a3187e3e36e38015717ab2db423256a0739c --- src/media_controller_server.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/media_controller_server.c b/src/media_controller_server.c index ba90c4e..a422ce6 100755 --- a/src/media_controller_server.c +++ b/src/media_controller_server.c @@ -112,7 +112,7 @@ static void __server_playback_state_command_cb(const char *interface_name, const mc_server_playback_state_command_received_cb callback = receiver->callback; mc_retm_if(receiver->callback == NULL, "playback_state_command_received_cb is NULL"); - mc_debug("__server_playback_state_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data); + mc_debug("__server_playback_state_command_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data); params = g_strsplit(message, MC_STRING_DELIMITER, 0); mc_retm_if(params == NULL, "invalid playback state command"); @@ -120,14 +120,14 @@ static void __server_playback_state_command_cb(const char *interface_name, const if (mc_util_get_command_availabe(params[0], MC_COMMAND_PLAYBACKSTATE, NULL) != MEDIA_CONTROLLER_ERROR_NONE) { mc_error("Error permission denied"); g_strfreev(params); - return ; + return; } int value = 0; if (mc_safe_strtoi(params[1], &value) != MEDIA_CONTROLLER_ERROR_NONE) { mc_error("Error get recieved value"); g_strfreev(params); - return ; + return; } callback(params[0], (mc_playback_states_e)value, receiver->user_data); @@ -145,7 +145,7 @@ static void __server_playback_position_command_cb(const char *interface_name, co mc_server_playback_position_command_received_cb callback = receiver->callback; mc_retm_if(receiver->callback == NULL, "playback_position_command_received_cb is NULL"); - mc_debug("__server_playback_state_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data); + mc_debug("__server_playback_position_command_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data); params = g_strsplit(message, MC_STRING_DELIMITER, 0); mc_retm_if(params == NULL, "invalid playback state command"); @@ -153,14 +153,14 @@ static void __server_playback_position_command_cb(const char *interface_name, co if (mc_util_get_command_availabe(params[0], MC_COMMAND_PLAYBACKPOSITION, NULL) != MEDIA_CONTROLLER_ERROR_NONE) { mc_error("Error permission denied"); g_strfreev(params); - return ; + return; } unsigned long long value = 0; if (mc_safe_strtoull(params[1], &value) != MEDIA_CONTROLLER_ERROR_NONE) { mc_error("Error get recieved value"); g_strfreev(params); - return ; + return; } callback(params[0], value, receiver->user_data); @@ -178,7 +178,7 @@ static void __server_shuffle_mode_command_cb(const char *interface_name, const c mc_server_shuffle_mode_command_received_cb callback = receiver->callback; mc_retm_if(receiver->callback == NULL, "shuffle_mode_command_received_cb is NULL"); - mc_debug("__server_playback_state_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data); + mc_debug("__server_shuffle_mode_command_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data); params = g_strsplit(message, MC_STRING_DELIMITER, 0); mc_retm_if(params == NULL, "invalid playback state command"); @@ -186,14 +186,14 @@ static void __server_shuffle_mode_command_cb(const char *interface_name, const c if (mc_util_get_command_availabe(params[0], MC_COMMAND_SHUFFLE, NULL) != MEDIA_CONTROLLER_ERROR_NONE) { mc_error("Error permission denied"); g_strfreev(params); - return ; + return; } int value = 0; if (mc_safe_strtoi(params[1], &value) != MEDIA_CONTROLLER_ERROR_NONE) { mc_error("Error get recieved value"); g_strfreev(params); - return ; + return; } callback(params[0], (mc_shuffle_mode_e)value, receiver->user_data); @@ -211,7 +211,7 @@ static void __server_repeat_mode_command_cb(const char *interface_name, const ch mc_server_repeat_mode_command_received_cb callback = receiver->callback; mc_retm_if(receiver->callback == NULL, "repeat_mode_command_received_cb is NULL"); - mc_debug("__server_playback_state_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data); + mc_debug("__server_repeat_mode_command_cb(%s, %s, %s, %d, %p)", interface_name, signal_name, message, size, user_data); params = g_strsplit(message, MC_STRING_DELIMITER, 0); mc_retm_if(params == NULL, "invalid playback state command"); @@ -219,14 +219,14 @@ static void __server_repeat_mode_command_cb(const char *interface_name, const ch if (mc_util_get_command_availabe(params[0], MC_COMMAND_REPEAT, NULL) != MEDIA_CONTROLLER_ERROR_NONE) { mc_error("Error permission denied"); g_strfreev(params); - return ; + return; } int value = 0; if (mc_safe_strtoi(params[1], &value) != MEDIA_CONTROLLER_ERROR_NONE) { mc_error("Error get recieved value"); g_strfreev(params); - return ; + return; } callback(params[0], (mc_repeat_mode_e)value, receiver->user_data); -- 2.7.4