From: Mauro Carvalho Chehab Date: Wed, 23 Nov 2011 15:03:32 +0000 (-0300) Subject: [media] ir-nec-decoder: Report what bit failed at debug msg X-Git-Tag: next-20111128~55^2~2^2~101 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=39cac3758f62c6495d954e0d7dc1ca7e69fa565d;p=karo-tx-linux.git [media] ir-nec-decoder: Report what bit failed at debug msg Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/ir-nec-decoder.c b/drivers/media/rc/ir-nec-decoder.c index 63ee722dbd02..a8253182caf5 100644 --- a/drivers/media/rc/ir-nec-decoder.c +++ b/drivers/media/rc/ir-nec-decoder.c @@ -193,8 +193,8 @@ static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev) return 0; } - IR_dprintk(1, "NEC decode failed at state %d (%uus %s)\n", - data->state, TO_US(ev.duration), TO_STR(ev.pulse)); + IR_dprintk(1, "NEC decode failed at count %d state %d (%uus %s)\n", + data->count, data->state, TO_US(ev.duration), TO_STR(ev.pulse)); data->state = STATE_INACTIVE; return -EINVAL; }