int ret = device_display_get_state(&state);
if (ret != DEVICE_ERROR_NONE) {
- ERR("device_display_get_state failed: %s", get_error_message(ret));
+ _E("device_display_get_state failed: %s", get_error_message(ret));
return FAIL;
}
char *app_id = NULL;
app_context_get_app_id(app_context, &app_id);
if (app_id == NULL) {
- ERR("app_id is null!!");
+ _E("app_id is null!!");
return;
} else {
_D("_app_terminate_cb %s",app_id);
if(exceed_index<0)
{
- ERR("INDEX %d",exceed_index);
+ _E("INDEX %d",exceed_index);
goto __CATCH;
}
{
if(current_buf_cnt>=QUEUE_SIZE)
{
- ERR("QUEUE FULL");
+ _E("QUEUE FULL");
return;
}
if(msg_queue[current_buf_cnt].data!=NULL)
i18n_udate date;
ret = i18n_ucalendar_get_now(&date);
if (ret != I18N_ERROR_NONE) {
- ERR("i18n_ucalendar_get_now failed: %d", ret);
+ _E("i18n_ucalendar_get_now failed: %d", ret);
free(locale);
free(timezone_id);
return;
_D("Locale: %s", locale);
if (locale == NULL) {
- ERR("[Error] get value of fail.");
+ _E("[Error] get value of fail.");
return;
}
i18n_udate date;
ret = i18n_ucalendar_get_now(&date);
if (ret != I18N_ERROR_NONE) {
- ERR("i18n_ucalendar_get_now failed: %d", ret);
+ _E("i18n_ucalendar_get_now failed: %d", ret);
free(locale);
return;
}
i18n_timezone_h tmz;
if (timezone == NULL) {
- ERR("TIMEZONE is NULL");
+ _E("TIMEZONE is NULL");
return;
}
int ret = i18n_timezone_create(&tmz, timezone);
if (ret != I18N_ERROR_NONE) {
- ERR("Unable to create timezone handle from %s: %d", timezone, ret);
+ _E("Unable to create timezone handle from %s: %d", timezone, ret);
return;
}
ret = i18n_timezone_set_default(tmz);
if (ret != I18N_ERROR_NONE) {
- ERR("Unable to set default timezone to %s: %d", timezone, ret);
+ _E("Unable to set default timezone to %s: %d", timezone, ret);
}
i18n_timezone_destroy(tmz);
ret = tethering_set_connection_state_changed_cb(data->handle, TETHERING_TYPE_ALL, _tethering_data_connection_state_changed, data);
if (ret != TETHERING_ERROR_NONE) {
tethering_destroy(data->handle);
- ERR("tethering_set_connection_state_changed_cb failed: %d", get_error_message(ret));
+ _E("tethering_set_connection_state_changed_cb failed: %d", get_error_message(ret));
return FAIL;
}
ret = tethering_set_enabled_cb(data->handle, TETHERING_TYPE_ALL, _tethering_data_enabled_changed, data);
if (ret != TETHERING_ERROR_NONE) {
tethering_destroy(data->handle);
- ERR("tethering_set_enabled_cb failed: %d", get_error_message(ret));
+ _E("tethering_set_enabled_cb failed: %d", get_error_message(ret));
return FAIL;
}
ret = tethering_set_disabled_cb(data->handle, TETHERING_TYPE_ALL, _tethering_data_disabled, data);
if (ret != TETHERING_ERROR_NONE) {
tethering_destroy(data->handle);
- ERR("tethering_set_disabled_cb failed: %d", get_error_message(ret));
+ _E("tethering_set_disabled_cb failed: %d", get_error_message(ret));
return FAIL;
}
int status = 0;
if (vconf_get_int(VCONFKEY_WIFI_TRANSFER_STATE, &status) < 0) {
- ERR("Error getting VCONFKEY_WIFI_TRANSFER_STATE value");
+ _E("Error getting VCONFKEY_WIFI_TRANSFER_STATE value");
return;
}
ret = wifi_set_device_state_changed_cb(_wifi_device_state_changed, data);
if (ret != WIFI_ERROR_NONE) {
- ERR("wifi_set_device_state_changed_cb failed: %s", get_error_message(ret));
+ _E("wifi_set_device_state_changed_cb failed: %s", get_error_message(ret));
unregister_wifi_module();
return FAIL;
}
ret = util_wifi_set_connection_state_changed_cb(_wifi_connection_state_changed, data);
if (ret != 0) {
- ERR("util_wifi_set_connection_state_changed_cb failed");
+ _E("util_wifi_set_connection_state_changed_cb failed");
unregister_wifi_module();
return FAIL;
}
ret = wifi_set_rssi_level_changed_cb(_wifi_rssi_level_changed, data);
if (ret != WIFI_ERROR_NONE) {
- ERR("wifi_set_rssi_level_changed_cb failed: %s", get_error_message(ret));
+ _E("wifi_set_rssi_level_changed_cb failed: %s", get_error_message(ret));
unregister_wifi_module();
return FAIL;
}
ret = vconf_notify_key_changed(VCONFKEY_WIFI_TRANSFER_STATE, _wifi_changed_cb, data);
if (ret != WIFI_ERROR_NONE) {
- ERR("vconf_notify_key_changed failed: %s", get_error_message(ret));
+ _E("vconf_notify_key_changed failed: %s", get_error_message(ret));
unregister_wifi_module();
return FAIL;
}
int ret = wifi_deinitialize();
if (ret != WIFI_ERROR_NONE) {
- ERR("wifi_deinitialize failed : %s", get_error_message(ret));
+ _E("wifi_deinitialize failed : %s", get_error_message(ret));
}
return OK;
hide_image_icon();
return;
}
- ERR("Failed to get alarm count!");
+ _E("Failed to get alarm count!");
return;
}
set_app_state(data);
if (ret < 0)
{
- ERR("Fail to init alarmdb.");
+ _E("Fail to init alarmdb.");
return FAIL;
}
ret = app_info_get_icon(app_info, &icon_path);
if (ret != APP_MANAGER_ERROR_NONE) {
app_info_destroy(app_info);
- ERR("app_info_get_icon failed %d", ret);
+ _E("app_info_get_icon failed %d", ret);
return NULL;
}
#include "icon.h"
#include "modules.h"
#include "main.h"
+#include "log.h"
#define ICON_PRIORITY INDICATOR_PRIORITY_NOTI_1
#define MODULE_NAME "VIDEO_PLAY"
#include "icon.h"
#include "modules.h"
#include "main.h"
+#include "log.h"
#define ICON_PRIORITY INDICATOR_PRIORITY_MINICTRL1
#define MODULE_NAME "VOICE_RECORDER"
if (battery_percentage < 0)
{
- ERR("Invalid Battery Capacity in percents: %d", battery_percentage);
+ _E("Invalid Battery Capacity in percents: %d", battery_percentage);
return;
}
if (ret != DEVICE_ERROR_NONE)
{
- ERR("Fail to get battery charging status");
+ _E("Fail to get battery charging status");
return;
} else {
_D("Battery charge Status: %d", status);
#include "main.h"
#include "modules.h"
#include "icon.h"
+#include "log.h"
#define ICON_PRIORITY INDICATOR_PRIORITY_NOTI_1
#define MODULE_NAME "downloading"
}
else
{
- ERR("show_downloading_icon!, timer");
+ _E("show_downloading_icon!, timer");
}
}
{
result = result | status;
} else {
- ERR("Error getting VCONFKEY_WIFI_DIRECT_RECEIVING_STATE value");
+ _E("Error getting VCONFKEY_WIFI_DIRECT_RECEIVING_STATE value");
}*/
if (result == 1) {
if (vconf_get_int(VCONFKEY_PM_STATE, &status) < 0)
{
- ERR("Error getting VCONFKEY_PM_STATE value");
+ _E("Error getting VCONFKEY_PM_STATE value");
if (timer != NULL)
{
#include "main.h"
#include "modules.h"
#include "icon.h"
+#include "log.h"
#define ICON_PRIORITY INDICATOR_PRIORITY_NOTI_1
#define MODULE_NAME "uploading"
}
else
{
- ERR("show_uploading_icon!, timer");
+ _E("show_uploading_icon!, timer");
}
}
{
result = result | status;
} else {
- ERR("Failed to get VCONFKEY_WIFI_DIRECT_SENDING_STATE value");
+ _E("Failed to get VCONFKEY_WIFI_DIRECT_SENDING_STATE value");
}*/
if (result == 1) {
// Register bluetooth adapter state call-back.
ret = bt_initialize();
- if(ret != BT_ERROR_NONE) ERR("bt_initialize failed");
+ if(ret != BT_ERROR_NONE) _E("bt_initialize failed");
ret = bt_adapter_set_state_changed_cb(indicator_bluetooth_adapter_state_changed_cb, data);
- if(ret != BT_ERROR_NONE) ERR("bt_adapter_set_state_changed_cb failed");
+ if(ret != BT_ERROR_NONE) _E("bt_adapter_set_state_changed_cb failed");
ret = bt_device_set_connection_state_changed_cb(indicator_bluetooth_change_cb, data);
if (ret != BT_ERROR_NONE)
// Unregister bluetooth adapter state call-back.
ret = bt_adapter_unset_state_changed_cb();
- if(ret != BT_ERROR_NONE) ERR("bt_adapter_unset_state_changed_cb failed");
+ if(ret != BT_ERROR_NONE) _E("bt_adapter_unset_state_changed_cb failed");
ret = bt_deinitialize();
- if(ret != BT_ERROR_NONE) ERR("bt_deinitialize failed");
+ if(ret != BT_ERROR_NONE) _E("bt_deinitialize failed");
return ret;
}
if (runtime_info_get_value_int(RUNTIME_INFO_KEY_GPS_STATUS, (int *)&gps_status) < 0)
{
- ERR("Error getting RUNTIME_INFO_KEY_GPS_STATUS value");
+ _E("Error getting RUNTIME_INFO_KEY_GPS_STATUS value");
return 0;
}
default:
hide_image_icon();
- ERR("Invalid value!");
+ _E("Invalid value!");
break;
}
nfc_manager_unset_activation_changed_cb();
if (get_last_result() != NFC_ERROR_NONE)
- ERR("Failed to unregister callback!");
+ _E("Failed to unregister callback!");
return OK;
}
ret = system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_SOUND_SILENT_MODE);
if (ret != SYSTEM_SETTINGS_ERROR_NONE)
- ERR("Failed to unset silent mode change callback function.");
+ _E("Failed to unset silent mode change callback function.");
ret = runtime_info_unset_changed_cb(RUNTIME_INFO_KEY_VIBRATION_ENABLED);
if (ret != RUNTIME_INFO_ERROR_NONE)
- ERR("Failed to unset vibration change callback function.");
+ _E("Failed to unset vibration change callback function.");
return ret;
}
if (s_info.tts_handler != NULL) {
ret = tts_get_state(s_info.tts_handler, &state);
if (TTS_ERROR_NONE != ret){
- ERR("get state error(%d)", ret);
+ _E("get state error(%d)", ret);
return -1;
}
int ret = TTS_ERROR_NONE;
if (s_info.tts_handler == NULL) {
- ERR("critical, TTS handler isn't initialized");
+ _E("critical, TTS handler isn't initialized");
return;
}
ret = tts_add_text(s_info.tts_handler, message, NULL, TTS_VOICE_TYPE_AUTO, TTS_SPEED_AUTO, &utt);
if (TTS_ERROR_NONE != ret){
- ERR("add text error!");
+ _E("add text error!");
return;
}
ret = tts_play(s_info.tts_handler);
if(ret != TTS_ERROR_NONE) {
- ERR("play error(%d) state(%d)", ret);
+ _E("play error(%d) state(%d)", ret);
}
}
int ret = TTS_ERROR_NONE;
if (s_info.tts_handler == NULL) {
- ERR("critical, TTS handler isn't initialized");
+ _E("critical, TTS handler isn't initialized");
return;
}
ret = tts_stop(s_info.tts_handler);
if (TTS_ERROR_NONE != ret){
- ERR("failed to stop play:%d", ret);
+ _E("failed to stop play:%d", ret);
return;
}
}
int ret = 0;
if (TTS_ERROR_NONE != (ret = tts_set_state_changed_cb(tts, _tts_state_changed_cb, tts))){
- ERR("set interrupted callback error !!:%d", ret);
+ _E("set interrupted callback error !!:%d", ret);
ret = -1;
}
if (TTS_ERROR_NONE != (ret = tts_set_utterance_started_cb(tts, _tts_utt_started_cb, data))) {
- ERR("set utterance started callback error !!:%d", ret);
+ _E("set utterance started callback error !!:%d", ret);
ret = -1;
}
if (TTS_ERROR_NONE != (ret = tts_set_utterance_completed_cb(tts, _tts_utt_completed_cb, data))) {
- ERR("set utterance completed callback error !!:%d", ret);
+ _E("set utterance completed callback error !!:%d", ret);
ret = -1;
}
if (TTS_ERROR_NONE != (ret = tts_set_error_cb(tts, _tts_error_cb, data))) {
- ERR("set error callback error !!:%d", ret);
+ _E("set error callback error !!:%d", ret);
ret = -1;
}
if (s_info.tts_handler == NULL) {
ret = tts_create(&tts);
if(ret != TTS_ERROR_NONE) {
- ERR("tts_create() failed");
+ _E("tts_create() failed");
return ;
}
ret = tts_set_mode(tts, TTS_MODE_NOTIFICATION);
if(ret != TTS_ERROR_NONE) {
- ERR("tts_create() failed");
+ _E("tts_create() failed");
tts_destroy(s_info.tts_handler);
s_info.tts_handler = NULL;
return ;
}
if(_tts_callback_set(tts, NULL) != 0) {
- ERR("_tts_callback_set() failed");
+ _E("_tts_callback_set() failed");
tts_destroy(s_info.tts_handler);
s_info.tts_handler = NULL;
return ;
ret = tts_prepare(tts);
if(ret != TTS_ERROR_NONE) {
- ERR("tts_create() failed");
+ _E("tts_create() failed");
tts_destroy(s_info.tts_handler);
s_info.tts_handler = NULL;
return ;
if (s_info.tts_handler != NULL) {
ret = tts_destroy(s_info.tts_handler);
if(ret != TTS_ERROR_NONE) {
- ERR("tts_destroy() failed");
+ _E("tts_destroy() failed");
}
s_info.tts_handler = NULL;
}
} else if (state == TTS_STATE_READY) {
_tts_play(message);
} else {
- ERR("invalid status: %d", state);
+ _E("invalid status: %d", state);
}
}
}
if (!ecore_file_exists(path))
{
- ERR("icon file does not exist!!: %s",path);
+ _E("icon file does not exist!!: %s",path);
return;
}
elm_image_file_set(icon, path, NULL);
ret = app_control_send_launch_request(service, NULL, NULL);
if(ret != APP_CONTROL_ERROR_NONE) {
- ERR("Cannot launch app");
+ _E("Cannot launch app");
}
app_control_destroy(service);
Evas_Object *util_access_object_register(Evas_Object *object, Evas_Object *layout)
{
if ((object == NULL) || (layout == NULL)) {
- ERR("Access object doesn't exist!!! %x %x",object,layout);
+ _E("Access object doesn't exist!!! %x %x",object,layout);
return NULL;
}
void util_access_object_unregister(Evas_Object *object)
{
if (object == NULL) {
- ERR("Access object doesn't exist!!! %x",object);
+ _E("Access object doesn't exist!!! %x",object);
return NULL;
}
void util_access_object_info_set(Evas_Object *object, int info_type, char *info_text)
{
if ((object == NULL) || (info_text == NULL)) {
- ERR("Access info set fails %x, %x!!!",object,info_text);
+ _E("Access info set fails %x, %x!!!",object,info_text);
return;
}
void util_access_object_activate_cb_set(Evas_Object *object, Elm_Access_Activate_Cb activate_cb, void *cb_data)
{
if ((object == NULL) || (activate_cb == NULL)) {
- ERR("Access activated cb set fails %x %x!!!",object,activate_cb);
+ _E("Access activated cb set fails %x %x!!!",object,activate_cb);
return;
}
void util_access_object_info_cb_set(Evas_Object *object, int type, Elm_Access_Info_Cb info_cb, void *cb_data)
{
if ((object == NULL) || (info_cb == NULL)) {
- ERR("Access info cb set fails %x %x!!!",object,info_cb);
+ _E("Access info cb set fails %x %x!!!",object,info_cb);
return;
}
if(icon == NULL)
{
- ERR("ICON NULL");
+ _E("ICON NULL");
return;
}
{
if(icon == NULL)
{
- ERR("ICON NULL");
+ _E("ICON NULL");
return;
}
szTimezone = vconf_get_str(VCONFKEY_SETAPPL_TIMEZONE_ID);
if(szTimezone == NULL)
{
- ERR("Cannot get time zone.");
+ _E("Cannot get time zone.");
return strdup("N/A");
}
}
else
{
- ERR("NO TIMEZONEINFO");
+ _E("NO TIMEZONEINFO");
return _get_timezone_from_vconf();
}
return (char*)strdup(buf+20); // Asia/Seoul
prefix = app_get_external_cache_path();
break;
default:
- LOGE("Not handled directory type.");
+ _E("Not handled directory type.");
return NULL;
}
size_t res = eina_file_path_join(buf, sizeof(buf), prefix, relative);
free(prefix);
if (res > sizeof(buf)) {
- LOGE("Path exceeded PATH_MAX");
+ _E("Path exceeded PATH_MAX");
return NULL;
}
system_settings_unset_changed_cb(key);
int err = system_settings_set_changed_cb(key, _system_settings_cb, NULL);
if (err != SYSTEM_SETTINGS_ERROR_NONE) {
- ERR("system_settings_set_changed_cb failed: %s", get_error_message(err));
+ _E("system_settings_set_changed_cb failed: %s", get_error_message(err));
free(handler);
return -1;
}
runtime_info_unset_changed_cb(key);
int err = runtime_info_set_changed_cb(key, _runtime_info_cb, NULL);
if (err != RUNTIME_INFO_ERROR_NONE) {
- ERR("runtime_info_set_changed_cb failed: %s", get_error_message(err));
+ _E("runtime_info_set_changed_cb failed: %s", get_error_message(err));
free(handler);
return -1;
}