summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSven Püschel <s.pueschel@pengutronix.de>2025-05-09 14:57:46 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2025-05-09 15:39:17 +0200
commitfabfdd8559fc9713b58536c61b7381dd02b5807a (patch)
tree4c6a47fa4e517a14214688eb31565a6d6b552839 /src
parenta79941501716eb65e6d905d2430bddf48887f3f5 (diff)
libcamera: v4l2_videodevice: Log buffer count on allocation errorHEADmaster
Log the actual and requested buffers count in case of a V4L2 buffers allocation error, when the requested buffers count could not be allocated. Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/v4l2_videodevice.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcamera/v4l2_videodevice.cpp b/src/libcamera/v4l2_videodevice.cpp
index f5b3fa09..d53aa2d3 100644
--- a/src/libcamera/v4l2_videodevice.cpp
+++ b/src/libcamera/v4l2_videodevice.cpp
@@ -1326,7 +1326,8 @@ int V4L2VideoDevice::requestBuffers(unsigned int count,
if (rb.count < count) {
LOG(V4L2, Error)
- << "Not enough buffers provided by V4L2VideoDevice";
+ << "Not enough buffers provided by V4L2VideoDevice. Wanted "
+ << count << ", got " << rb.count;
requestBuffers(0, memoryType);
return -ENOMEM;
}