]> git.baikalelectronics.ru Git - kernel.git/commit
media: videobuf2: Print videobuf2 buffer state by name
authorEzequiel Garcia <ezequiel@collabora.com>
Fri, 17 Jul 2020 03:39:57 +0000 (05:39 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 12:25:36 +0000 (14:25 +0200)
commit1c1067890a23579a272aa4224c5725f05c98bbc5
tree3e53210ec42ae63ea72f35ff5ce94c9bbac79c7a
parenta6873fc1a85f8f07c09f167a51a66149db2e431d
media: videobuf2: Print videobuf2 buffer state by name

For debugging purposes, seeing the state integer
representation is really inconvenient.

Improve this and be developer-friendly by printing
the state name instead.

Suggested-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.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