Fixed some build warnings. 87/169087/3
authorjoonbum.ko <joonbum.ko@samsung.com>
Tue, 9 Jan 2018 11:10:09 +0000 (20:10 +0900)
committerjoonbum.ko <joonbum.ko@samsung.com>
Fri, 2 Feb 2018 06:55:46 +0000 (15:55 +0900)
Change-Id: Ia3b45e382cafe02e25f9aaf777338dbd4f9e191e
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c
src/tpl_wl_egl_thread.c
src/tpl_wl_vk_thread.c

index d800c4c..4ae5313 100644 (file)
@@ -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);
 }
 
index b7e2128..e4fa659 100644 (file)
@@ -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)));
index f670382..6f96b2f 100644 (file)
@@ -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);