From c85240901d1f947d9a8102340f0db5a3d3a0ff57 Mon Sep 17 00:00:00 2001 From: Radoslaw Czerski Date: Fri, 18 Mar 2016 12:55:36 +0100 Subject: SECURE_DBG and SECURE_ERR macro usage removed. Change-Id: I0c13fab9aa98b265affb4d6a73541ae1db502968 Signed-off-by: Radoslaw Czerski --- src/box.c | 1 - src/icon.c | 11 +---------- src/message.c | 3 --- src/modules/information/more_notify.c | 2 +- src/util.c | 7 +------ 5 files changed, 3 insertions(+), 21 deletions(-) (limited to 'src') diff --git a/src/box.c b/src/box.c index 3c79f82..b61a506 100644 --- a/src/box.c +++ b/src/box.c @@ -489,7 +489,6 @@ int box_unpack(icon_s *icon) { retv_if(!icon, 0); - SECURE_DBG("[box_unpack] %s!",icon->name); switch (icon->area) { case INDICATOR_ICON_AREA_FIXED: icon->exist_in_view = EINA_FALSE; diff --git a/src/icon.c b/src/icon.c index 3b6bfd7..5c9e15a 100644 --- a/src/icon.c +++ b/src/icon.c @@ -582,7 +582,7 @@ void icon_hide(icon_s *icon) ret = box_unpack(icon); if (ret == FAIL) - SECURE_ERR("Failed to unpack %s!", icon->name); + _E("Failed to unpack!"); _show_others_in_same_priority(icon); @@ -646,7 +646,6 @@ void icon_reset_list(void) box_unpack(wish_remove_icon); system_cnt = box_get_count(SYSTEM_LIST); - SECURE_DBG("system remove %s %d",wish_remove_icon->name,system_cnt); } } else { while (system_cnt < box_get_enabled_system_count()) { @@ -662,9 +661,7 @@ void icon_reset_list(void) box_pack_append(wish_add_icon); system_cnt = box_get_count(SYSTEM_LIST); - SECURE_DBG("system insert %s %d",wish_add_icon->name,system_cnt); if(system_cnt == box_get_enabled_system_count()) { - SECURE_DBG("quit adding %d %d",system_cnt,box_get_enabled_system_count()); break; } } @@ -686,7 +683,6 @@ void icon_reset_list(void) box_unpack(wish_remove_icon); minictrl_cnt = box_get_count(MINICTRL_LIST); - SECURE_DBG("minictrl remove %s %d",wish_remove_icon->name,minictrl_cnt); } } else { while (minictrl_cnt < box_get_minictrl_list()) { @@ -702,9 +698,7 @@ void icon_reset_list(void) box_pack_append(wish_add_icon); minictrl_cnt = box_get_count(MINICTRL_LIST); - SECURE_DBG("minictrl insert %s %d",wish_add_icon->name,minictrl_cnt); if(minictrl_cnt==box_get_minictrl_list()) { - SECURE_DBG("quit adding %d %d", minictrl_cnt, box_get_minictrl_list()); break; } } @@ -723,7 +717,6 @@ void icon_reset_list(void) box_unpack(wish_remove_icon); noti_cnt = box_get_count(NOTI_LIST); - SECURE_DBG("remove %s %d",wish_remove_icon->name,noti_cnt); } } else { while (noti_cnt < box_get_enabled_noti_count()) { @@ -739,9 +732,7 @@ void icon_reset_list(void) box_pack_append(wish_add_icon); noti_cnt = box_get_count(NOTI_LIST); - SECURE_DBG("insert %s %d", wish_add_icon->name, noti_cnt); if(noti_cnt==box_get_enabled_noti_count()) { - SECURE_DBG("quit adding %d %d", noti_cnt, box_get_enabled_noti_count()); break; } } diff --git a/src/message.c b/src/message.c index e9aaba7..71e0ff9 100644 --- a/src/message.c +++ b/src/message.c @@ -411,8 +411,6 @@ static void _handle_message_by_win(char *message, void *data) } msg_type = 0; - SECURE_DBG("message %s", message); - temp = strdup(message); util_char_replace(temp,'\n',' '); @@ -580,7 +578,6 @@ static void __buffer_msg_callback(const char *message, void *data) ERR("QUEUE FULL"); return; } - SECURE_DBG("buffering... %d,%s",current_buf_cnt,message); if(msg_queue[current_buf_cnt].data!=NULL) { free(msg_queue[current_buf_cnt].data); diff --git a/src/modules/information/more_notify.c b/src/modules/information/more_notify.c index 81371a5..8fab1d6 100644 --- a/src/modules/information/more_notify.c +++ b/src/modules/information/more_notify.c @@ -119,7 +119,7 @@ static void indicator_more_notify_change_cb(const char *key, void *data) if (strcmp(key, INDICATOR_MORE_NOTI) == 0) { win = &(ad->win); } else { - SECURE_ERR("invalid val %s",key); + _E("invalid value!"); return; } diff --git a/src/util.c b/src/util.c index 6448c84..cec7277 100644 --- a/src/util.c +++ b/src/util.c @@ -100,10 +100,6 @@ void util_signal_emit(void* data, const char *emission, const char *source) char *filter1 = "indicator.connection.updown"; char *filter2 = "indicator.wifi.updown"; - if (strncmp(filter1, emission, strlen(filter1)) != 0 - && strncmp(filter2, emission, strlen(filter2)) != 0) { - SECURE_DBG("emission %s",emission); - } edje = elm_layout_edje_get(ad->win.layout); ret_if(!edje); @@ -572,10 +568,9 @@ int util_dynamic_state_get(void) Ecore_File_Monitor* util_file_monitor_add(const char* file_path, Ecore_File_Monitor_Cb callback_func, void *ad) { - SECURE_DBG("File path : %s", file_path); Ecore_File_Monitor* pFileMonitor = NULL; pFileMonitor = ecore_file_monitor_add(file_path, callback_func, ad); - if(pFileMonitor == NULL) SECURE_DBG("ecore_file_monitor_add return NULL !!"); + if(pFileMonitor == NULL) _D("ecore_file_monitor_add return NULL !!"); return pFileMonitor; } -- cgit v1.2.3