New issue
Advanced search Search tips

Issue 742688 link

Starred by 0 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

Don't print out VIDIOC_ENUM_FMT error message in a log if it is at the end of enumeration loop

Project Member Reported by hiroh@chromium.org, Jul 14 2017

Issue description

Separate VIDIO_ENUM_FMT issue from https://bugs.chromium.org/p/chromium/issues/detail?id=697733#c6

===================================================================

"SYS_ioctl: VIDIOC_ENUM_FMT(2): fd=X, ret=-1, errno=2"

messages in the logs. These normally are not errors if we are at the end of enumeration loop and we get the final EINVAL return value to stop us from enumerating more (see https://www.linuxtv.org/downloads/v4l-dvb-apis-new/uapi/v4l/vidioc-enum-fmt.html?highlight=vidioc_enum_fmt).

We should try to not print out these messages of failing VIDIOC_ENUM_FMT in such cases.


 

Comment 1 by hiroh@chromium.org, Jul 14 2017

Description: Show this description
Labels: Hotlist-GoodFirstBug

Comment 3 by hiroh@chromium.org, Jul 20 2017

It turns out this error message was output in libv4lplugins, which is a chromiumos third party library.
I will upload a patch to ignore when cmd is VIDIOC_ENUM_FMT and it returns VINVAL.
The patch will be merged shortly.

Code review link: https://chromium-review.googlesource.com/c/578529/
Project Member

Comment 4 by bugdroid1@chromium.org, Jul 20 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/libv4lplugins/+/cfb9e18bc09d70e46ea8be34510729c005ec6906

commit cfb9e18bc09d70e46ea8be34510729c005ec6906
Author: Hirokazu Honda <hiroh@chromium.org>
Date: Thu Jul 20 15:00:11 2017

Rockchip: Do not print out a SYS_ioctl error message at the end of VIDIOC_ENUM_FMT enumeration loop

Do not print out SYS_ioctl error message, when cmd is VIDIOC_ENUM_FMT and
it returns EINVAL.
It would be at the end of enumeration loop. It is not a real error then.

BUG= chromium:742688 
TEST=VEA unittest on kevin

Change-Id: I78802f0351fe145107e89b7b296e6b75eae2f350
Reviewed-on: https://chromium-review.googlesource.com/578529
Commit-Ready: Hirokazu Honda <hiroh@chromium.org>
Tested-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Pawel Osciak <posciak@chromium.org>

[modify] https://crrev.com/cfb9e18bc09d70e46ea8be34510729c005ec6906/libv4l-rockchip_v2/libv4l-encplugin-rockchip.c
[modify] https://crrev.com/cfb9e18bc09d70e46ea8be34510729c005ec6906/libv4l-rockchip/libv4l-encplugin-rockchip.c

Comment 5 by hiroh@chromium.org, Jul 20 2017

Status: Fixed (was: Assigned)

Sign in to add a comment