From: Seonah Moon Date: Fri, 14 Dec 2018 06:21:43 +0000 (+0900) Subject: Fix dlog format error X-Git-Tag: accepted/tizen/unified/20181217.142257^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50cefa9b0f304d0e5fc6cd0736fa2676dc8a6834;p=apps%2Fnative%2Fug-wifi-efl.git Fix dlog format error Change-Id: I97af945a6b317452135de4a25311a7f5f1e84dc7 --- diff --git a/packaging/wifi-efl-ug.spec b/packaging/wifi-efl-ug.spec index e2cbec6..529a827 100644 --- a/packaging/wifi-efl-ug.spec +++ b/packaging/wifi-efl-ug.spec @@ -1,6 +1,6 @@ Name: wifi-efl-ug Summary: Wi-Fi UI Gadget for TIZEN -Version: 1.0.236 +Version: 1.0.237 Release: 1 Group: App/Network License: Flora-1.1 diff --git a/sources/libraries/Common/common_eap_connect.c b/sources/libraries/Common/common_eap_connect.c index 0f26cae..2a7c7a9 100755 --- a/sources/libraries/Common/common_eap_connect.c +++ b/sources/libraries/Common/common_eap_connect.c @@ -1272,7 +1272,7 @@ static gboolean __cert_extract_files(const char *cert_alias, ERROR_LOG(UG_NAME_NORMAL, "there is no certificates"); goto error; } - INFO_LOG(UG_NAME_NORMAL, "cert counts: %d", cert_counts); + INFO_LOG(UG_NAME_NORMAL, "cert counts: %zd", cert_counts); selected_certificate = g_try_new0(CertSvcCertificate, cert_counts); if (selected_certificate == NULL) { ERROR_LOG(UG_NAME_NORMAL, "failed to allocate memory"); diff --git a/sources/libraries/Common/common_utils.c b/sources/libraries/Common/common_utils.c index 4616956..3246955 100755 --- a/sources/libraries/Common/common_utils.c +++ b/sources/libraries/Common/common_utils.c @@ -367,7 +367,7 @@ char *common_utils_get_list_item_entry_txt(Elm_Object_Item *entry_item) if (entry_info == NULL) return NULL; - DEBUG_LOG(UG_NAME_NORMAL, "entry_info: 0x%x", entry_info); + DEBUG_LOG(UG_NAME_NORMAL, "entry_info: %p", entry_info); return g_strdup(entry_info->entry_txt); } diff --git a/sources/libraries/WlanManager/WlanManager/wlan_manager.c b/sources/libraries/WlanManager/WlanManager/wlan_manager.c index 3b02b7a..6c5a9b1 100755 --- a/sources/libraries/WlanManager/WlanManager/wlan_manager.c +++ b/sources/libraries/WlanManager/WlanManager/wlan_manager.c @@ -517,7 +517,7 @@ static bool wifi_found_ap_with_state_cb(wifi_manager_ap_h ap, void* user_data) if (ap_state_info->ap) wifi_manager_ap_clone(ap_state_info->ap, ap); - INFO_LOG(COMMON_NAME_LIB, "Found an AP[0x%x] in the state %d", ap, ap_state_info->state); + INFO_LOG(COMMON_NAME_LIB, "Found an AP[%p] in the state %d", ap, ap_state_info->state); return false; // found the match, so terminate the loop. } return true; @@ -839,7 +839,7 @@ int wlan_manager_disconnect(wifi_manager_ap_h ap) __COMMON_FUNC_ENTER__; int ret; - INFO_LOG(UG_NAME_REQ, "Request disconnection for ap [0x%x]", ap); + INFO_LOG(UG_NAME_REQ, "Request disconnection for ap [%p]", ap); ret = wlan_disconnect(ap, wlan_manager_disconnect_cb, NULL); if (WIFI_MANAGER_ERROR_NONE != ret) { diff --git a/sources/ui-gadget/viewers-layout/viewer_manager.c b/sources/ui-gadget/viewers-layout/viewer_manager.c index 38c722d..6de1d70 100755 --- a/sources/ui-gadget/viewers-layout/viewer_manager.c +++ b/sources/ui-gadget/viewers-layout/viewer_manager.c @@ -1919,7 +1919,7 @@ static void hidden_ap_connect_ok_cb(void *data, switch (hidden_ap_data->sec_mode) { case WLAN_SEC_MODE_NONE: - INFO_LOG(UG_NAME_NORMAL, "OPEN: event %x; passpopup %x", + INFO_LOG(UG_NAME_NORMAL, "OPEN: event %p; passpopup %p", event_info, ug_app_state->passpopup); wifi_manager_ap_set_security_type(ap, WIFI_MANAGER_SECURITY_TYPE_NONE); diff --git a/sources/ui-gadget/viewers-layout/wifi_viewer_list.c b/sources/ui-gadget/viewers-layout/wifi_viewer_list.c index 2d0e6d2..91a3832 100755 --- a/sources/ui-gadget/viewers-layout/wifi_viewer_list.c +++ b/sources/ui-gadget/viewers-layout/wifi_viewer_list.c @@ -430,7 +430,7 @@ static void __wps_pbc_popup_cancel_connecting(void *data, Evas_Object *obj, int ret = wlan_manager_disconnect(ap); if (ret != WLAN_MANAGER_ERR_NONE) - ERROR_LOG(UG_NAME_NORMAL, "Failed WPS PBC cancellation [0x%x]", ap); + ERROR_LOG(UG_NAME_NORMAL, "Failed WPS PBC cancellation [%p]", ap); passwd_popup_free(ug_app_state->passpopup); ug_app_state->passpopup = NULL; @@ -813,7 +813,7 @@ static void __viewer_list_item_clicked_cb(void *data, Evas_Object *obj, int current_state = 0; SECURE_INFO_LOG(UG_NAME_NORMAL, "ssid --- %s", device_info->ssid); - INFO_LOG(UG_NAME_NORMAL, "ap --- 0x%x", device_info->ap); + INFO_LOG(UG_NAME_NORMAL, "ap --- %p", device_info->ap); INFO_LOG(UG_NAME_NORMAL, "current item_state state is --- %d", item_state); if (ug_app_state->is_lbhome == EINA_TRUE && @@ -1131,7 +1131,7 @@ Elm_Object_Item *viewer_list_item_insert_after(wifi_device_info_t *wifi_device, g_free(gdata); } else { /* SECURE_DEBUG_LOG(UG_NAME_NORMAL, - "* item add complete item [0x%x] ssid:[%s] security[%d] size:[%d]", + "* item add complete item [%p] ssid:[%s] security[%d] size:[%d]", ret, wifi_device->ssid, wifi_device->security_mode, diff --git a/sources/ui-gadget/wifi-wlan-callbacks.c b/sources/ui-gadget/wifi-wlan-callbacks.c index f59629a..21f92a4 100755 --- a/sources/ui-gadget/wifi-wlan-callbacks.c +++ b/sources/ui-gadget/wifi-wlan-callbacks.c @@ -49,7 +49,7 @@ void wlan_engine_callback(wlan_mgr_event_info_t *event_info, void *user_data) INFO_LOG(UG_NAME_NORMAL, "header state [%d]", header_state); INFO_LOG(UG_NAME_NORMAL, "event type [%d]", event_info->event_type); - INFO_LOG(UG_NAME_NORMAL, "ap [0x%x]", event_info->ap); + INFO_LOG(UG_NAME_NORMAL, "ap [%p]", event_info->ap); if (event_info->ap) { /* Is it a response with AP handle? */ @@ -64,7 +64,7 @@ void wlan_engine_callback(wlan_mgr_event_info_t *event_info, void *user_data) * This condition can come when an AP action(Example connect) * is triggered and by the time the response came the genlist is cleared. */ - ERROR_LOG(UG_NAME_RESP, "Error!!! Target item[0x%x] is NULL OR item data[0x%x] is NULL", target_item, gdata); + ERROR_LOG(UG_NAME_RESP, "Error!!! Target item[%p] is NULL OR item data[%p] is NULL", target_item, gdata); if (event_info->event_type == WLAN_MANAGER_RESPONSE_TYPE_CONNECTING || event_info->event_type == WLAN_MANAGER_RESPONSE_TYPE_CONFIGURATION || event_info->event_type == WLAN_MANAGER_RESPONSE_TYPE_CONNECTION_OK) { @@ -76,7 +76,7 @@ void wlan_engine_callback(wlan_mgr_event_info_t *event_info, void *user_data) if (!target_item || !(gdata = (ug_genlist_data_t *)elm_object_item_data_get(target_item))) { - ERROR_LOG(UG_NAME_RESP, "Error!!! Fatal: Unable to add a connecting/connected item with item data[0x%x].", gdata); + ERROR_LOG(UG_NAME_RESP, "Error!!! Fatal: Unable to add a connecting/connected item with item data[%p].", gdata); goto exit; } diff --git a/sources/ui-gadget/winset_popup.c b/sources/ui-gadget/winset_popup.c index 8a62a65..9d6086d 100644 --- a/sources/ui-gadget/winset_popup.c +++ b/sources/ui-gadget/winset_popup.c @@ -73,7 +73,7 @@ static gboolean __wifi_tethering_deativate(popup_manager_object_t *manager_objec tethering_h handle = NULL; if (manager_object == NULL) { - INFO_LOG(COMMON_NAME_LIB, "popup manager_object is NULL \n", ret); + INFO_LOG(COMMON_NAME_LIB, "popup manager_object is NULL \n"); return FALSE; } diff --git a/sources/wifi-syspopup/viewer-popups/view-main.c b/sources/wifi-syspopup/viewer-popups/view-main.c index 3226fd5..efbcd42 100755 --- a/sources/wifi-syspopup/viewer-popups/view-main.c +++ b/sources/wifi-syspopup/viewer-popups/view-main.c @@ -165,7 +165,7 @@ static void __wps_pbc_popup_cancel_connecting(void *data, Evas_Object *obj, int ret = wlan_manager_disconnect(ap); if (ret != WLAN_MANAGER_ERR_NONE) - ERROR_LOG(SP_NAME_ERR, "Failed WPS PBC cancellation [0x%x]", ap); + ERROR_LOG(SP_NAME_ERR, "Failed WPS PBC cancellation [%p]", ap); passwd_popup_free(devpkr_app_state->passpopup); devpkr_app_state->passpopup = NULL;