media: vb2: Print the queue pointer in debug messages
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sun, 21 Jun 2020 00:23:43 +0000 (02:23 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 4 Jul 2020 10:32:10 +0000 (12:32 +0200)
commitb820935b35479e823eb6ce133cdbe371dced7e95
tree7cced7b8ed9695a5e35a76eb0a264978e3ff8801
parent030b161c4dc8a4d9a3dcecd7101680e3f871748d
media: vb2: Print the queue pointer in debug messages

When debugging issues that involve more than one video queue, messages
related to multiple queues get interleaved without any easy way to tell
which queue they relate to. Fix this by adding a queue name to
vb2_queue, and printing it in all debug messages in the vb2 core and
V4L2 layers. If the name isn't set by drivers, it is automatically
filled with the queue direction and address.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/common/videobuf2/videobuf2-core.c
drivers/media/common/videobuf2/videobuf2-v4l2.c
include/media/videobuf2-core.h
include/media/videobuf2-v4l2.h