libcamera: v4l2_videodevice: Log buffer count on allocation error

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>
This commit is contained in:
Sven Püschel 2025-05-09 14:57:46 +02:00 committed by Laurent Pinchart
parent a799415017
commit fabfdd8559

View file

@ -1326,7 +1326,8 @@ int V4L2VideoDevice::requestBuffers(unsigned int count,
if (rb.count < count) { if (rb.count < count) {
LOG(V4L2, Error) LOG(V4L2, Error)
<< "Not enough buffers provided by V4L2VideoDevice"; << "Not enough buffers provided by V4L2VideoDevice. Wanted "
<< count << ", got " << rb.count;
requestBuffers(0, memoryType); requestBuffers(0, memoryType);
return -ENOMEM; return -ENOMEM;
} }