summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-01-12 13:50:01 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-01-19 11:45:18 -0200
commite6bcb2f324cf28469d2713e86beace07f25596cf (patch)
tree47a8aba5d064cbfad67565a1c45a19d01a3a0635
parent59aa346009c06c6697e9db008e67e4ff8c205091 (diff)
downloadop-kernel-dev-e6bcb2f324cf28469d2713e86beace07f25596cf.zip
op-kernel-dev-e6bcb2f324cf28469d2713e86beace07f25596cf.tar.gz
[media] ir-kbd-i2c: Make IR debug messages more useful
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/ir-kbd-i2c.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c
index c87b6bc..b173e40 100644
--- a/drivers/media/video/ir-kbd-i2c.c
+++ b/drivers/media/video/ir-kbd-i2c.c
@@ -244,15 +244,17 @@ static void ir_key_poll(struct IR_i2c *ir)
static u32 ir_key, ir_raw;
int rc;
- dprintk(2,"ir_poll_key\n");
+ dprintk(3, "%s\n", __func__);
rc = ir->get_key(ir, &ir_key, &ir_raw);
if (rc < 0) {
dprintk(2,"error\n");
return;
}
- if (rc)
+ if (rc) {
+ dprintk(1, "%s: keycode = 0x%04x\n", __func__, ir_key);
rc_keydown(ir->rc, ir_key, 0);
+ }
}
static void ir_work(struct work_struct *work)
OpenPOWER on IntegriCloud