OSDN Git Service

media: tvp5150: make debug output more readable
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 12 Mar 2020 10:31:56 +0000 (11:31 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 12 Mar 2020 15:42:40 +0000 (16:42 +0100)
commit430f35b734e6851d72bc66cc140f045999b30dec
tree6622cae612e588fecce289c48d820bb3085da413
parentbaf178219478c217d8e9727a31971e32d3ff2b70
media: tvp5150: make debug output more readable

The debug output for tvp5150_selmux() isn't really intuitive. Register
values are printed decimal formatted and the input/output driver states
are printed as enum. Even more the "normal" output enum mapps to zero so
a active output will printing output=0 and a inactive output=1.

Change this by brinting the register values hex formatted and the states
as more readable string.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/tvp5150.c