media: v4l2-ioctl: print capabilities in v4l_print_create_buffers()
authorHelen Koike <helen.koike@collabora.com>
Thu, 14 Jan 2021 18:01:47 +0000 (19:01 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 13:15:40 +0000 (14:15 +0100)
Print capabilities field from struct v4l2_create_buffers for better
debugging.

Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-ioctl.c

index 8d5d9c3..31d1342 100644 (file)
@@ -518,9 +518,9 @@ static void v4l_print_create_buffers(const void *arg, bool write_only)
 {
        const struct v4l2_create_buffers *p = arg;
 
-       pr_cont("index=%d, count=%d, memory=%s, ",
-                       p->index, p->count,
-                       prt_names(p->memory, v4l2_memory_names));
+       pr_cont("index=%d, count=%d, memory=%s, capabilities=0x%08x, ",
+               p->index, p->count, prt_names(p->memory, v4l2_memory_names),
+               p->capabilities);
        v4l_print_format(&p->format, write_only);
 }