ma_state_e prev_state;
ma_active_state_e active_state;
- ma_client_get_client_state(g_ma, &prev_state);
- ma_client_get_client_active_state(g_ma, &active_state);
- ma_client_set_client_state(g_ma, MA_STATE_READY);
+ int ret = MA_ERROR_NONE;
+ ret = ma_client_get_client_state(g_ma, &prev_state);
+ if (MA_ERROR_NONE != ret) {
+ SLOG(LOG_ERROR, TAG_MAC, "[ERROR] Fail to get client state : %d", ret);
+ }
+ ret = ma_client_get_client_active_state(g_ma, &active_state);
+ if (MA_ERROR_NONE != ret) {
+ SLOG(LOG_ERROR, TAG_MAC, "[ERROR] Fail to get client active state : %d", ret);
+ }
+ ret = ma_client_set_client_state(g_ma, MA_STATE_READY);
+ if (MA_ERROR_NONE != ret) {
+ SLOG(LOG_ERROR, TAG_MAC, "[ERROR] Fail to set client state : %d", ret);
+ }
__ma_notify_state_changed(g_ma);
ma_client_set_ui_pid(g_ma, ui_pid);