[camera hal] build error with log tag parameters 02/207602/2 tizen_5.0
authorHyuntae Kim <ht1211.kim@samsung.com>
Mon, 10 Jun 2019 02:11:30 +0000 (11:11 +0900)
committerHyuntae Kim <ht1211.kim@samsung.com>
Mon, 10 Jun 2019 02:18:58 +0000 (11:18 +0900)
1. camera log parameter mismatched with number of inputs
    [Version] 0.0.2
    [Profile] Common
    [Issue Type] Update
    [Dependency module] N/A

Change-Id: Idc01dfaca9dd1007faa6b2cbc3b8d0d96bd2f83c

src/tizen_camera_v4l2.c

index fb7c87e355742d9ee074d63c989e5e4fb0dcd987..e59c669bc981c5b908a58a152a03629264e7b18a 100644 (file)
@@ -445,7 +445,7 @@ static int _camera_get_device_info(int device_index, int device_fd, camera_devic
                                        v4l2_frame.stepwise.max_height);
                                break;
                        case V4L2_FRMSIZE_TYPE_STEPWISE:
-                               LOGW("\t\tsize[%d] %ux%u - %ux%u (step %ux%u)",
+                               LOGW("\t\tsize[%d] %ux%u - %ux%u (step %ux%u)", j,
                                        v4l2_frame.stepwise.min_width,
                                        v4l2_frame.stepwise.min_height,
                                        v4l2_frame.stepwise.max_width,
@@ -1165,7 +1165,7 @@ int camera_set_preview_stream_format(void *camera_handle, camera_format_t *forma
 
        if (V4L2_TYPE_IS_MULTIPLANAR(handle->v4l2_type)) {
                for (i = 0 ; i < v4l2_fmt.fmt.pix_mp.num_planes ; i++) {
-                       LOGD("plane[%d] stride %d, sizeimage %d",
+                       LOGD("plane[%d] stride %d, sizeimage %d", i,
                                v4l2_fmt.fmt.pix_mp.plane_fmt[i].bytesperline,
                                v4l2_fmt.fmt.pix_mp.plane_fmt[i].sizeimage);
                }
@@ -1810,7 +1810,7 @@ int camera_set_batch_command(void *camera_handle, camera_batch_command_control_t
 
        g_mutex_lock(&handle->lock);
 
-       LOGD("set batch command - flag 0x"PRIx64", state %d",
+       LOGD("set batch command - flag 0x%"PRIx64", state %d",
                batch_command->command_set_flag, handle->state);
 
        /* TODO: to be implemented */