From 651fce1dcb204998a7ec0ce7593186696379d1e0 Mon Sep 17 00:00:00 2001 From: Haejeong Kim Date: Wed, 21 Jun 2017 13:58:41 +0900 Subject: [PATCH] fix invalid format argument types for dlog Change-Id: I7312c1e6823cf1f5586d511d0effa8622ebfed4f --- libdcm-face/dcm-face.c | 4 ++-- libdcm-face/dcm-face_mediavision.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libdcm-face/dcm-face.c b/libdcm-face/dcm-face.c index 1e78550..850cd83 100755 --- a/libdcm-face/dcm-face.c +++ b/libdcm-face/dcm-face.c @@ -45,7 +45,7 @@ EXPORT_API int dcm_face_create(__inout dcm_face_h *handle) *handle = pFaceHandle; - dcm_info("face created. handle=0x%08x", *handle); + dcm_info("face created. handle=%p", *handle); return ret; } @@ -53,7 +53,7 @@ EXPORT_API int dcm_face_create(__inout dcm_face_h *handle) EXPORT_API int dcm_face_destroy(__in dcm_face_h handle) { int ret = MS_MEDIA_ERR_NONE; - dcm_info("face destroy. handle=0x%08x", handle); + dcm_info("face destroy. handle=%p", handle); dcm_retvm_if(handle == NULL, MS_MEDIA_ERR_INVALID_PARAMETER, "Invalid handle"); diff --git a/libdcm-face/dcm-face_mediavision.c b/libdcm-face/dcm-face_mediavision.c index 0422f12..a2a90bc 100755 --- a/libdcm-face/dcm-face_mediavision.c +++ b/libdcm-face/dcm-face_mediavision.c @@ -155,7 +155,7 @@ int _face_handle_create(__inout void **handle) *handle = _handle; - dcm_info("dcm_face_engine was created. handle=0x%08x", *handle); + dcm_info("dcm_face_engine was created. handle=%p", *handle); return MS_MEDIA_ERR_NONE; } @@ -168,7 +168,7 @@ int _face_handle_destroy(__in void *handle) dcm_retvm_if(_handle == NULL, MS_MEDIA_ERR_INVALID_PARAMETER, "invalid handle"); - dcm_info("dcm_face_engine destroy. handle=0x%08x", handle); + dcm_info("dcm_face_engine destroy. handle=%p", handle); if (_handle->cfg != NULL) { err = mv_destroy_engine_config(_handle->cfg); @@ -205,7 +205,7 @@ int _face_detect_faces(__in dcm_face_h handle, __out face_rect_s *face_rect[], _ __convert_to_mv_colorspace_e(handle->image_info->colorspace, &colorspace); - dcm_debug("face_detect image: %p, size: %d, width: %d, height: %d, color: %d", handle->image_info->data, handle->image_info->size, handle->image_info->width, handle->image_info->height, colorspace); + dcm_debug("face_detect image: %p, size: %llu, width: %d, height: %d, color: %d", handle->image_info->data, handle->image_info->size, handle->image_info->width, handle->image_info->height, colorspace); err = mv_source_fill_by_buffer(_fengine->source, handle->image_info->data, (unsigned int)(handle->image_info->size), handle->image_info->width, handle->image_info->height, colorspace); if (err != MEDIA_VISION_ERROR_NONE) { -- 2.34.1