camera: fix `-Wformat` compiler warnings
Test: add `USE_CAMERA_V4L2_HAL := true` to
hardware/libhardware/modules/camera/3_4/Android.mk and build
mmm hardware/libhardware/modules/camera/3_4
Change-Id: Ib1d1fc2de98436dd7e9d15ab324789725bb2002e
Signed-off-by: Sergii Piatakov <sergii.piatakov@globallogic.com>
diff --git a/modules/camera/3_4/camera.cpp b/modules/camera/3_4/camera.cpp
index 01236f3..35054a0 100644
--- a/modules/camera/3_4/camera.cpp
+++ b/modules/camera/3_4/camera.cpp
@@ -344,7 +344,7 @@
// Pre-process output buffers.
if (request->output_buffers.size() <= 0) {
- ALOGE("%s:%d: Invalid number of output buffers: %d", __func__, mId,
+ ALOGE("%s:%d: Invalid number of output buffers: %zu", __func__, mId,
request->output_buffers.size());
return -EINVAL;
}
@@ -434,7 +434,7 @@
completeRequestWithError(request);
}
- ALOGV("%s:%d: Flushed %u requests.", __func__, mId, requests.size());
+ ALOGV("%s:%d: Flushed %zu requests.", __func__, mId, requests.size());
// Call down into the device flushing.
return flushBuffers();