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)
commitc89ee8ed3289c651f0521ff812c73c82803bdab8
tree3e53210ec42ae63ea72f35ff5ce94c9bbac79c7a
parent1c79e41b115f57f281b54b5bc699d0e01dbcd111
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