#define LOG_COLOR_GREEN "\033[32m"
#define LOG_COLOR_BLUE "\033[36m"
+#ifndef LOGD_IF
+#define LOGD_IF(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, ##arg)
+#endif
+#ifndef LOGI_IF
+#define LOGI_IF(fmt, arg...) dlog_print(DLOG_INFO, LOG_TAG, ##arg)
+#endif
+#ifndef LOGW_IF
+#define LOGW_IF(fmt, arg...) dlog_print(DLOG_ERROR, LOG_TAG, ##arg)
+#endif
+
#define DEBUG_TRACE(fmt, arg...) LOGD_IF(TRUE, LOG_COLOR_GREEN"[TID:%d] "fmt""LOG_COLOR_RESET, gettid(), ##arg)
#define INFO_TRACE(fmt, arg...) LOGI_IF(TRUE, LOG_COLOR_GREEN"[TID:%d] "fmt""LOG_COLOR_RESET, gettid(), ##arg)
#define WARN_TRACE(fmt, arg...) LOGW_IF(TRUE, LOG_COLOR_YELLOW"[TID:%d] "fmt""LOG_COLOR_RESET, gettid(), ##arg)
char *str = NULL;
char buf[PATH_MAX] = {0, };
Eina_Unicode uni;
- Elm_Object_Item *it = NULL;
char *locale = NULL;
Evas_Object *list = (Evas_Object *)data;
MP_CHECK(obj);
snprintf(buf, i - j + 1, "%s", str + j);
buf[i - j + 1] = 0;
- it = elm_index_item_append(obj, buf, _mc_index_item_selected_cb, list);
+ elm_index_item_append(obj, buf, _mc_index_item_selected_cb, list);
//elm_index_item_priority_set(it, 0);
}
if (retcode != SYSTEM_SETTINGS_ERROR_NONE) {
ERROR_TRACE("Unable to fetch the current language setting with return value %d", retcode);
}
- if (!ea_locale_latin_get(locale))
- {
+ if (!ea_locale_latin_get(locale)) {
str = dgettext("efl-extension", "IDS_EA_BODY_ABCDEFGHIJKLMNOPQRSTUVWXYZ_SECOND");
MP_CHECK(str);
len = strlen(str);
i = 0;
- while (i < len)
- {
+ while (i < len) {
j = i;
uni = eina_unicode_utf8_next_get(str, &i);
MP_CHECK(uni);
snprintf(buf, i - j + 1, "%s", str + j);
buf[i - j + 1] = 0;
- it = elm_index_item_append(obj, buf, _mc_index_item_selected_cb, list);
+ elm_index_item_append(obj, buf, _mc_index_item_selected_cb, list);
//elm_index_item_priority_set(it, 1);
}
#define LOG_COLOR_BLUE "\033[36m"
#define LOG_COLOR_PURPLE "\033[35m"
+#ifndef LOGD_IF
+#define LOGD_IF(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, ##arg)
+#endif
+#ifndef LOGI_IF
+#define LOGI_IF(fmt, arg...) dlog_print(DLOG_INFO, LOG_TAG, ##arg)
+#endif
+#ifndef LOGW_IF
+#define LOGW_IF(fmt, arg...) dlog_print(DLOG_ERROR, LOG_TAG, ##arg)
+#endif
+#ifndef SECURE_LOGD
+#define SECURE_LOGD(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, ##arg)
+#endif
+#ifndef SECURE_LOGI
+#define SECURE_LOGI(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, ##arg)
+#endif
+
#ifndef TRUE
#define TRUE 1
#endif