From: Lukasz Wlazly Date: Mon, 10 Dec 2018 09:37:51 +0000 (+0100) Subject: Fix dlog build errors X-Git-Tag: accepted/tizen/unified/20181220.061737^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=720455f19a5e645236aeed9ea8b978faab599d8c;p=profile%2Fmobile%2Fapps%2Fnative%2Faccessibility-setting.git Fix dlog build errors Change-Id: I83425d2843cdd70ca1d2f660c1d691610403adb2 --- diff --git a/src/AddSwitchPage.cpp b/src/AddSwitchPage.cpp index c9ca9f3..3f9508e 100644 --- a/src/AddSwitchPage.cpp +++ b/src/AddSwitchPage.cpp @@ -65,7 +65,7 @@ void AddSwitchPage::disableScreenSwitchProviderIfSwitchMapped(const std::vector< 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); diff --git a/src/CameraSwitchesPage.cpp b/src/CameraSwitchesPage.cpp index 47bc471..9cb61bf 100644 --- a/src/CameraSwitchesPage.cpp +++ b/src/CameraSwitchesPage.cpp @@ -88,7 +88,7 @@ void CameraSwitchesPage::createActionPage(SettingAccessibility *ad, UniversalSwi { 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(ad); ActionPage::attachCallback(ad, switchActionCb, camera_switch); diff --git a/src/setting-accessibility.cpp b/src/setting-accessibility.cpp index b753c4d..ebd2630 100644 --- a/src/setting-accessibility.cpp +++ b/src/setting-accessibility.cpp @@ -56,22 +56,22 @@ create_tts_handle(SettingAccessibility *ad) 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;