aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarod Wilson <jarod@redhat.com>2011-03-24 15:43:45 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-05-20 08:27:39 -0400
commit990528ebe7b7f07f67e29e66700297b10557a706 (patch)
treeb5d64adb69336991bc66f6bee78502ec6f7e5e79
parent68a49a4a3dc9354b6daa24dd87e4e246b6da3c13 (diff)
[media] lirc_sasem: key debug spew off debug modparam
Signed-off-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/staging/lirc/lirc_sasem.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/staging/lirc/lirc_sasem.c b/drivers/staging/lirc/lirc_sasem.c
index 63a438d1c849..7080cdeab5a6 100644
--- a/drivers/staging/lirc/lirc_sasem.c
+++ b/drivers/staging/lirc/lirc_sasem.c
@@ -570,6 +570,7 @@ static void incoming_packet(struct sasem_context *context,
570 unsigned char *buf = urb->transfer_buffer; 570 unsigned char *buf = urb->transfer_buffer;
571 long ms; 571 long ms;
572 struct timeval tv; 572 struct timeval tv;
573 int i;
573 574
574 if (len != 8) { 575 if (len != 8) {
575 printk(KERN_WARNING "%s: invalid incoming packet size (%d)\n", 576 printk(KERN_WARNING "%s: invalid incoming packet size (%d)\n",
@@ -577,12 +578,12 @@ static void incoming_packet(struct sasem_context *context,
577 return; 578 return;
578 } 579 }
579 580
580#ifdef DEBUG 581 if (debug) {
581 int i; 582 printk(KERN_INFO "Incoming data: ");
582 for (i = 0; i < 8; ++i) 583 for (i = 0; i < 8; ++i)
583 printk(KERN_INFO "%02x ", buf[i]); 584 printk(KERN_CONT "%02x ", buf[i]);
584 printk(KERN_INFO "\n"); 585 printk(KERN_CONT "\n");
585#endif 586 }
586 587
587 /* 588 /*
588 * Lirc could deal with the repeat code, but we really need to block it 589 * Lirc could deal with the repeat code, but we really need to block it