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 (cherry picked from commit bac969836ec107b17489a782103517684691fddc) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3395179 (cherry picked from commit 97058881b98459a100562cc41a148d7e3240059b) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3415602 Reviewed-by: Narendra Kondapalli <nkondapalli@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Nithin Varghese <nvarghese@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
8d112b32e5
commit
b36ca8daa3
@@ -703,11 +703,12 @@ tegra_channel_queue_setup(struct vb2_queue *vq,
|
||||
* of the requested image size. Although this did not harm the
|
||||
* flow, according to "v4l2-compliance", we need to check if
|
||||
* the requested size is invalid.
|
||||
* Printing this error as info, to avoid kernel error/warning failure.
|
||||
*/
|
||||
if (*nplanes) {
|
||||
if (sizes[0] < chan->format.sizeimage) {
|
||||
pr_err("%s: sizes[0] = %d chan->format.sizeimage = %d ...\n"
|
||||
,__func__,sizes[0],chan->format.sizeimage);
|
||||
pr_info("%s: sizes[0] = %d, chan->format.sizeimage = %d, for num_planes = %d ...\n"
|
||||
, __func__, sizes[0], chan->format.sizeimage, *nplanes);
|
||||
return -EINVAL;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user