summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2020-07-24 12:29:50 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-07-27 14:57:50 +0300
commit3acc31b0e3bdb7a53d52ab32136aaf46f1af6ce7 (patch)
tree0f89b6364160429922702109e99df96bed35fd72
parent774f0d1b9b59f5a779d0bf257b365f307cf191f8 (diff)
libcamera: request: Add log point on a completed request
Add a debug log point to indicate a request has completed. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--src/libcamera/request.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp
index 6b9e0b4a..f3753514 100644
--- a/src/libcamera/request.cpp
+++ b/src/libcamera/request.cpp
@@ -212,6 +212,10 @@ void Request::complete()
{
ASSERT(!hasPendingBuffers());
status_ = cancelled_ ? RequestCancelled : RequestComplete;
+
+ LOG(Request, Debug)
+ << "Request has completed - cookie: " << cookie_
+ << (cancelled_ ? " [Cancelled]" : "");
}
/**