media: cec-api: log the reason for the -EINVAL in cec_s_mode
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 6 Aug 2017 11:04:05 +0000 (07:04 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 9 Aug 2017 13:41:44 +0000 (09:41 -0400)
commitc33da628de92dc64c11009b885871f963278469a
tree4146aa17944cdc78f383b15262fd76c287ffab0e
parent73a167452454e0da25287ef1c5bf16188f4697bf
media: cec-api: log the reason for the -EINVAL in cec_s_mode

If cec_debug >= 1 then log why the requested mode returned -EINVAL.

It can be hard to debug this since -EINVAL can be returned for many
reasons. So this should help.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-api.c