diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2018-02-08 11:55:48 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-02-26 08:12:49 -0500 |
commit | 1b3963509a469c70b965c2211db4eb3427c4ef86 (patch) | |
tree | 838e498d3e1fdf9f3060ddee827634a6170c2196 /drivers/media/usb/airspy | |
parent | 47b934875b00fefe16a2b8a9daa88eb82be169a8 (diff) |
media: cec: improve debugging
cec_transmit_msg_fh() first checked the message for errors, and only
after the message was found to be valid did it log the message contents.
However, that makes it hard to associate an error in the kernel log with
the message since the message contents was never logged in that case.
So swap the order: first log the message (once some very basic checks
are done), and only after that check for errors.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/airspy')
0 files changed, 0 insertions, 0 deletions