diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-30 14:49:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-30 14:49:35 -0400 |
commit | 32570579cbde878580b621a846b18d04db856286 (patch) | |
tree | cbbf987863e5f03ef2a376699a3a2300e470248a /drivers/media | |
parent | d24b69fc6b0aca41a205b2b5abaf3f243ad7d48b (diff) |
[media] ir-rc5-decoder: print where decoding fails
The IR dprintk message that prints a RC5 decoding failure
is not much helpful, as it doesn't tell on what bit the
error occurred.
Add such information, in order to make the debug message
more useful.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/rc/ir-rc5-decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/rc/ir-rc5-decoder.c b/drivers/media/rc/ir-rc5-decoder.c index 93168daf82eb..2ef763928ca4 100644 --- a/drivers/media/rc/ir-rc5-decoder.c +++ b/drivers/media/rc/ir-rc5-decoder.c | |||
@@ -178,8 +178,8 @@ again: | |||
178 | } | 178 | } |
179 | 179 | ||
180 | out: | 180 | out: |
181 | IR_dprintk(1, "RC5(x/sz) decode failed at state %i (%uus %s)\n", | 181 | IR_dprintk(1, "RC5(x/sz) decode failed at state %i count %d (%uus %s)\n", |
182 | data->state, TO_US(ev.duration), TO_STR(ev.pulse)); | 182 | data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse)); |
183 | data->state = STATE_INACTIVE; | 183 | data->state = STATE_INACTIVE; |
184 | return -EINVAL; | 184 | return -EINVAL; |
185 | } | 185 | } |