retm_if(switch_provider == NULL, "Input parameter is NULL");
retm_if(item == NULL, "Input parameter is NULL");
- SETTING_TRACE_DEBUG("provider_id %s", switch_provider->info->id);
+ SETTING_TRACE_DEBUG("provider_id %s", switch_provider->info->id.c_str());
if (switch_provider->info->id == ACCESSIBILITY_UNIVERSAL_SWITCH_SCREEN_SWITCH_PROVIDER)
disableAlreadyMappedSwitch(configuration_items, ACCESSIBILITY_UNIVERSAL_SWITCH_SCREEN_SWITCH_ID, item);
{
retm_if(ad == NULL, "Data argument is NULL");
- SETTING_TRACE_DEBUG("Camera switch, id: %s, name: %s", camera_switch->id, camera_switch->name);
+ SETTING_TRACE_DEBUG("Camera switch, id: %s, name: %s", camera_switch->id.c_str(), camera_switch->name.c_str());
ad->actionPage_ = std::make_unique<ActionPage>(ad);
ActionPage::attachCallback(ad, switchActionCb, camera_switch);
int ret;
ret = tts_create(&(ad->tts));
if (ret != 0) {
- SETTING_TRACE_DEBUG("tts_create %d", get_tts_error(ret));
+ SETTING_TRACE_DEBUG("tts_create %s", get_tts_error(ret));
return -1;
}
ret = tts_set_mode(ad->tts, TTS_MODE_DEFAULT);
if (ret != 0) {
- SETTING_TRACE_DEBUG("tts_set_mode %d", get_tts_error(ret));
+ SETTING_TRACE_DEBUG("tts_set_mode %s", get_tts_error(ret));
return -1;
}
ret = tts_prepare(ad->tts);
if (ret != 0) {
- SETTING_TRACE_DEBUG("tts_prepare %d", get_tts_error(ret));
+ SETTING_TRACE_DEBUG("tts_prepare %s", get_tts_error(ret));
return -1;
}
ret = tts_set_state_changed_cb(ad->tts, state_changed_cb, ad);
if (ret != 0) {
- SETTING_TRACE_DEBUG("tts_set_state_changed_cb %d", get_tts_error(ret));
+ SETTING_TRACE_DEBUG("tts_set_state_changed_cb %s", get_tts_error(ret));
return -1;
}
return 0;