[media] ir-nec-decoder: Report what bit failed at debug msg
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 23 Nov 2011 15:03:32 +0000 (12:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 23 Nov 2011 21:22:52 +0000 (19:22 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/ir-nec-decoder.c

index 63ee722dbd0204ea61860971b1c1d0a37d923dff..a8253182caf57c9f3ae1b7bbfb58136f6318c4f2 100644 (file)
@@ -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;
 }