]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[media] ir-kbd-i2c: Make IR debug messages more useful
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 12 Jan 2011 16:50:01 +0000 (13:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jan 2011 13:45:18 +0000 (11:45 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ir-kbd-i2c.c

index c87b6bc455556dd7b4fbe607dc18dbdd909f5840..b173e409cd288c4f2cd3c1e4b7668ca386844101 100644 (file)
@@ -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)