Skip to contentSkip to conversation

ir-kbd-i2c: Make IR debug messages more useful

PATCH New Mauro Carvalho Chehab 1 participant 1 message Jan 12, 2011 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ir-kbd-i2c: Make IR debug messages more useful

drivers/media/video/ir-kbd-i2c.c +4 -2
index c87b6bc..b173e40 100644
@@ -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)
Signature · 1 line
1.7.1