From c34883b51af32f6756daf09e8daea5412ec0a24e Mon Sep 17 00:00:00 2001 From: "joonbum.ko" Date: Tue, 9 Jan 2018 20:10:09 +0900 Subject: [PATCH] Fixed some build warnings. Change-Id: Ia3b45e382cafe02e25f9aaf777338dbd4f9e191e Signed-off-by: joonbum.ko --- src/tpl_wayland_egl_thread.c | 5 +++-- src/tpl_wl_egl_thread.c | 2 +- src/tpl_wl_vk_thread.c | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index d800c4c..4ae5313 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -2608,7 +2608,7 @@ twe_surface_destroy_swapchain(twe_surface_h twe_surface) } if (surf_source->vk_sub_thread) { - TPL_DEBUG("vk_sub_thread(%d) exit.", surf_source->vk_sub_thread); + TPL_DEBUG("vk_sub_thread(%p) exit.", surf_source->vk_sub_thread); g_mutex_lock(&surf_source->sub_thread_mutex); g_main_loop_quit(surf_source->vk_sub_loop); @@ -2837,7 +2837,8 @@ twe_surface_commit_without_enqueue(twe_surface_h twe_surface, if (!surf_source->is_destroying) _twe_thread_wl_surface_commit(surf_source, tbm_surface); else - TPL_WARN("surf_source(%p) native window is already destroyed."); + TPL_WARN("surf_source(%p) native window is already destroyed.", + surf_source); TPL_OBJECT_UNLOCK(&surf_source->obj); } diff --git a/src/tpl_wl_egl_thread.c b/src/tpl_wl_egl_thread.c index b7e2128..e4fa659 100644 --- a/src/tpl_wl_egl_thread.c +++ b/src/tpl_wl_egl_thread.c @@ -698,7 +698,7 @@ __tpl_wl_egl_surface_dequeue_buffer(tpl_surface_t *surface, uint64_t timeout_ns, surface->frontbuffer, tbm_bo_export(tbm_surface_internal_get_bo( surface->frontbuffer, 0))); - TRACE_ASYNC_BEGIN(surface->frontbuffer, + TRACE_ASYNC_BEGIN((int)surface->frontbuffer, "[DEQ]~[ENQ] BO_NAME:%d", tbm_bo_export(tbm_surface_internal_get_bo( surface->frontbuffer, 0))); diff --git a/src/tpl_wl_vk_thread.c b/src/tpl_wl_vk_thread.c index f670382..6f96b2f 100644 --- a/src/tpl_wl_vk_thread.c +++ b/src/tpl_wl_vk_thread.c @@ -433,12 +433,13 @@ __tpl_wl_vk_wsi_surface_dequeue_buffer(tpl_surface_t *surface, lock_ret = twe_display_lock(wayland_vk_wsi_display->twe_display); if (res == TPL_ERROR_TIME_OUT) { - TPL_ERR("Failed to get buffer during timeout_ns(%u)", timeout_ns); + TPL_ERR("Failed to get buffer during timeout_ns(%" PRIu64 ")", + timeout_ns); if (lock_ret == TPL_ERROR_NONE) twe_display_unlock(wayland_vk_wsi_display->twe_display); return NULL; } else if (res != TPL_ERROR_NONE) { - TPL_ERR("Invalid parameter. twe_surface(%p) timeout_ns(%u)", + TPL_ERR("Invalid parameter. twe_surface(%p) timeout_ns(%" PRIu64 ")", wayland_vk_wsi_surface->twe_surface, timeout_ns); if (lock_ret == TPL_ERROR_NONE) twe_display_unlock(wayland_vk_wsi_display->twe_display); -- 2.7.4