]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] ir-rc5-decoder: print where decoding fails
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 30 Jul 2014 18:49:16 +0000 (15:49 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 30 Jul 2014 18:49:35 +0000 (15:49 -0300)
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>
drivers/media/rc/ir-rc5-decoder.c

index 93168daf82eb622e66c10e2797fde07fd75b1c2e..2ef763928ca440076951e9658174ec88e6ba1833 100644 (file)
@@ -178,8 +178,8 @@ again:
        }
 
 out:
-       IR_dprintk(1, "RC5(x/sz) decode failed at state %i (%uus %s)\n",
-                  data->state, TO_US(ev.duration), TO_STR(ev.pulse));
+       IR_dprintk(1, "RC5(x/sz) decode failed at state %i count %d (%uus %s)\n",
+                  data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse));
        data->state = STATE_INACTIVE;
        return -EINVAL;
 }