From 09ff0bf5e4ebe7822243812b96169455dd36d141 Mon Sep 17 00:00:00 2001 From: Yu Date: Mon, 17 Dec 2018 14:27:36 +0900 Subject: [PATCH] Fix 64bit build error Change-Id: I9c9c7be32fa87ba03c8b653ad1277cd3040f282b Signed-off-by: Yu jiung --- src/session/asp-session.c | 2 +- src/tech/asp-tech-infra.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/session/asp-session.c b/src/session/asp-session.c index c6c5c88..52adfde 100644 --- a/src/session/asp-session.c +++ b/src/session/asp-session.c @@ -795,7 +795,7 @@ void _p2p_conn_ip_assigned_cb(gint32 error_code, const guint8 *session_mac, g_strlcpy(p_param->peer_ip_addr, peer_ip_addr, ASP_SESSION_IPV4_STR_LEN); p_param->length = ip_length; - ASP_LOGD("%s %d", p_param->peer_ip_addr, p_param->length); + ASP_LOGD("%s %zu", p_param->peer_ip_addr, p_param->length); gfsm_process_event(&(session->context), gfsm_create_event(SESSION_EVENT_IP_ASSIGNED, p_param, g_free)); } diff --git a/src/tech/asp-tech-infra.c b/src/tech/asp-tech-infra.c index f6072ac..bf66ec9 100644 --- a/src/tech/asp-tech-infra.c +++ b/src/tech/asp-tech-infra.c @@ -529,7 +529,7 @@ gint32 asp_tech_infra_seek(asp_service_seek_s *service) g_hash_table_insert(g_browser_hash, GUINT_TO_POINTER(service->search_id), GUINT_TO_POINTER(browser_handle)); - ASP_LOGD("Insert (%llu, %u) to g_browser_hash (size: %d)", + ASP_LOGD("Insert (%lu, %u) to g_browser_hash (size: %d)", service->search_id, browser_handle, g_hash_table_size(g_browser_hash)); @@ -549,7 +549,7 @@ gint32 asp_tech_infra_cancel_seek(asp_service_seek_s *service) if (!browser_handle) { /* TODO */ - ASP_LOGE("Failed to lookup search id %llu", service->search_id); + ASP_LOGE("Failed to lookup search id %lu", service->search_id); return result; } -- 2.7.4