summaryrefslogtreecommitdiff
path: root/src/android/camera_device.cpp
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-05-26 15:41:41 +0200
committerJacopo Mondi <jacopo@jmondi.org>2020-06-04 09:50:52 +0200
commita7b9277e45a9c16f7f108c69fb7156b639fecd5a (patch)
tree9ec3a58954d330e27ee21dc1ddc25ca6e39e3be2 /src/android/camera_device.cpp
parent5f2f9406cebc668f0d69007d1ea59ef3c56ef28c (diff)
android: camera_device: Provide log prefix
Make the CameraDevice a Loggable subclass and provide a logPrefix() method to identify which camera the log output refers to. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_device.cpp')
-rw-r--r--src/android/camera_device.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
index 4ec429fc..ad277cb0 100644
--- a/src/android/camera_device.cpp
+++ b/src/android/camera_device.cpp
@@ -863,6 +863,11 @@ void CameraDevice::requestComplete(Request *request)
delete buffer;
}
+std::string CameraDevice::logPrefix() const
+{
+ return "'" + camera_->name() + "'";
+}
+
void CameraDevice::notifyShutter(uint32_t frameNumber, uint64_t timestamp)
{
camera3_notify_msg_t notify = {};