mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
media: camera: modify error log to info log
v4l2-compliance has a negative test for image size, resulting in an error log. Modify this error log to info to avoid reporting kernel error/warning failure. Bug 5143480 Change-Id: I5ec459f97c5b09e130293b59c19c1eb3ea9a53ee Signed-off-by: Shubham Chandra <shubhamc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3396425 Reviewed-by: Ankur Pawar <ankurp@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Nithin Varghese <nvarghese@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
2a5341be49
commit
5500a4aee6
@@ -761,11 +761,12 @@ tegra_channel_queue_setup(struct vb2_queue *vq,
|
|||||||
* of the requested image size. Although this did not harm the
|
* of the requested image size. Although this did not harm the
|
||||||
* flow, according to "v4l2-compliance", we need to check if
|
* flow, according to "v4l2-compliance", we need to check if
|
||||||
* the requested size is invalid.
|
* the requested size is invalid.
|
||||||
|
* Printing this error as info, to avoid kernel error/warning failure.
|
||||||
*/
|
*/
|
||||||
if (*nplanes) {
|
if (*nplanes) {
|
||||||
if (sizes[0] < chan->format.sizeimage) {
|
if (sizes[0] < chan->format.sizeimage) {
|
||||||
dev_err(chan->vi->dev, "sizes[0] = %d chan->format.sizeimage = %d ...\n"
|
dev_info(chan->vi->dev, "sizes[0] = %d chan->format.sizeimage = %d, for num_planes = %d ...\n"
|
||||||
, sizes[0], chan->format.sizeimage);
|
, sizes[0], chan->format.sizeimage, *nplanes);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user