From 3903ba82538b504d6e6af2952684aa0b34b26993 Mon Sep 17 00:00:00 2001 From: Yu Date: Mon, 17 Dec 2018 14:20:54 +0900 Subject: [PATCH] Fix 64bit build error Change-Id: Ifb6da222ad42951f68e5b72dd28be3f34196243c Signed-off-by: Yu jiung --- popup-wifidirect/src/wfd-app-popup-view.c | 2 +- popup-wifidirect/src/wfd-app-util.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/popup-wifidirect/src/wfd-app-popup-view.c b/popup-wifidirect/src/wfd-app-popup-view.c index 3b4fcf3..d58170b 100755 --- a/popup-wifidirect/src/wfd-app-popup-view.c +++ b/popup-wifidirect/src/wfd-app-popup-view.c @@ -438,7 +438,7 @@ static void _smart_ime_cb(void *data, Evas_Object * obj, void *event_info) char *txt = elm_entry_markup_to_utf8(elm_entry_entry_get((const Evas_Object *) imf_context)); if (NULL != txt) { - WFD_APP_LOG(WFD_APP_LOG_LOW, "* text [%s], len=[%d]", txt, strlen(txt)); + WFD_APP_LOG(WFD_APP_LOG_LOW, "* text [%s], len=[%zu]", txt, strlen(txt)); strncpy(connection->wps_pin, txt, sizeof(connection->wps_pin) - 1); WFD_IF_FREE_MEM(txt); } else { diff --git a/popup-wifidirect/src/wfd-app-util.c b/popup-wifidirect/src/wfd-app-util.c index 5b80486..18bd5cc 100644 --- a/popup-wifidirect/src/wfd-app-util.c +++ b/popup-wifidirect/src/wfd-app-util.c @@ -126,7 +126,7 @@ static void _move_data_to_app_control(const char *key, const int type, return; } snprintf(buff, size + 1, "%s", ((char*) ptr)); - WFD_APP_LOG(WFD_APP_LOG_ERROR, "Found STR -KEY: %s, VAL: %s, SIZE: %d", key, buff, size); + WFD_APP_LOG(WFD_APP_LOG_ERROR, "Found STR -KEY: %s, VAL: %s, SIZE: %zu", key, buff, size); app_control_add_extra_data(control, key, buff); free(buff); @@ -139,7 +139,7 @@ static void _move_data_to_app_control(const char *key, const int type, return; } snprintf(buff, size + 1, "%s", ((char*) ptr)); - WFD_APP_LOG(WFD_APP_LOG_ERROR, "Found STR -KEY: %s, VAL: %s, SIZE: %d", key, buff, size); + WFD_APP_LOG(WFD_APP_LOG_ERROR, "Found STR -KEY: %s, VAL: %s, SIZE: %zu", key, buff, size); app_control_add_extra_data(control, key, buff); free(buff); -- 2.7.4