When the decode fails, print on what bit this happened. This helps
to discover what's going wrong when fixing an IR decoding bug.

Signed-off-by: Mauro Carvalho Chehab <m.che...@samsung.com>
---
 drivers/media/rc/ir-rc5-decoder.c | 4 ++--
 1 file 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:
        }
 
 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;
 }
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to