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:
parent
a799415017
commit
fabfdd8559
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue