Skip to content

Commit

Permalink
[media] lirc_sasem: key debug spew off debug modparam
Browse files Browse the repository at this point in the history
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed May 20, 2011
1 parent 68a49a4 commit 990528e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions drivers/staging/lirc/lirc_sasem.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,19 +570,20 @@ static void incoming_packet(struct sasem_context *context,
unsigned char *buf = urb->transfer_buffer;
long ms;
struct timeval tv;
int i;

if (len != 8) {
printk(KERN_WARNING "%s: invalid incoming packet size (%d)\n",
__func__, len);
return;
}

#ifdef DEBUG
int i;
for (i = 0; i < 8; ++i)
printk(KERN_INFO "%02x ", buf[i]);
printk(KERN_INFO "\n");
#endif
if (debug) {
printk(KERN_INFO "Incoming data: ");
for (i = 0; i < 8; ++i)
printk(KERN_CONT "%02x ", buf[i]);
printk(KERN_CONT "\n");
}

/*
* Lirc could deal with the repeat code, but we really need to block it
Expand Down

0 comments on commit 990528e

Please sign in to comment.