From 39671b79e06c35ed62b3398da18318e18fbad5e9 Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Fri, 7 Dec 2018 15:48:33 +0900 Subject: [PATCH] Fix invalid format usage [Version] 0.4.18 [Profile] Common [Issue Type] Bug fix [Dependency module] N/A Change-Id: Id5ce4ad440817cc312009af9be42cf201824f632 Signed-off-by: Jeongmo Yang --- packaging/capi-media-camera.spec | 2 +- src/camera.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packaging/capi-media-camera.spec b/packaging/capi-media-camera.spec index 217cd19..aad94f0 100644 --- a/packaging/capi-media-camera.spec +++ b/packaging/capi-media-camera.spec @@ -1,6 +1,6 @@ Name: capi-media-camera Summary: A Camera API -Version: 0.4.17 +Version: 0.4.18 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/camera.c b/src/camera.c index 905d1d2..f0b5115 100644 --- a/src/camera.c +++ b/src/camera.c @@ -2442,7 +2442,7 @@ int camera_create(camera_device_e device, camera_h *camera) goto ErrorExit; } - LOGD("camera create 0x%x", pc->remote_handle); + LOGD("camera create 0x%lx", pc->remote_handle); *camera = (camera_h)pc; @@ -2960,7 +2960,7 @@ int camera_cancel_focusing(camera_h camera) return CAMERA_ERROR_INVALID_PARAMETER; } - LOGD("Enter, remote_handle : %x", pc->remote_handle); + LOGD("Enter, remote_handle : %lx", pc->remote_handle); _camera_msg_send(api, pc->cb_info, &ret, CAMERA_CB_TIMEOUT); @@ -4409,7 +4409,7 @@ int camera_attr_set_zoom(camera_h camera, int zoom) return CAMERA_ERROR_INVALID_PARAMETER; } - LOGD("Enter, remote_handle : %x", pc->remote_handle); + LOGD("Enter, remote_handle : %lx", pc->remote_handle); CAMERA_MSG_PARAM_SET(param, INT, zoom); @@ -4434,7 +4434,7 @@ int camera_attr_set_af_mode(camera_h camera, camera_attr_af_mode_e mode) return CAMERA_ERROR_INVALID_PARAMETER; } - LOGD("Enter, remote_handle : %x", pc->remote_handle); + LOGD("Enter, remote_handle : %lx", pc->remote_handle); CAMERA_MSG_PARAM_SET(param, INT, set_mode); @@ -4798,7 +4798,7 @@ int camera_attr_set_tag_software(camera_h camera, const char *software) return CAMERA_ERROR_INVALID_PARAMETER; } - LOGD("Enter, remote_handle : %x", pc->remote_handle); + LOGD("Enter, remote_handle : %lx", pc->remote_handle); CAMERA_MSG_PARAM_SET(param, STRING, software); @@ -5662,7 +5662,7 @@ int camera_attr_foreach_supported_fps(camera_h camera, camera_attr_supported_fps _camera_msg_send(api, pc->cb_info, &ret, CAMERA_CB_TIMEOUT); - LOGD("Enter, handle :%x", pc->remote_handle); + LOGD("Enter, handle :%lx", pc->remote_handle); return ret; } -- 2.7.4