OSDN Git Service

media: vb2: add a new warning about pending buffers
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 28 Dec 2017 16:29:38 +0000 (11:29 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 3 Jan 2018 10:30:35 +0000 (05:30 -0500)
commit6f0e5fd39143a59c22d60e7befc4f33f22aeed2f
treea7db014e7aead074ea4a72ab48057fcb2f04f0c0
parent2e33dbb06da4078f94ed8e5fb596ddeca45a1099
media: vb2: add a new warning about pending buffers

There's a logic at the VB2 core that produces a WARN_ON if
there are still buffers waiting to be filled. However, it doesn't
indicate what buffers are still opened, with makes harder to
identify issues inside caller drivers.

So, add a new pr_warn() pointing to such buffers. That, together
with debug instrumentation inside the drivers can make easier to
identify where the problem is.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/common/videobuf/videobuf2-core.c