[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>
This commit is contained in:
parent
68a49a4a3d
commit
990528ebe7
|
@ -570,6 +570,7 @@ static void incoming_packet(struct sasem_context *context,
|
||||||
unsigned char *buf = urb->transfer_buffer;
|
unsigned char *buf = urb->transfer_buffer;
|
||||||
long ms;
|
long ms;
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
|
int i;
|
||||||
|
|
||||||
if (len != 8) {
|
if (len != 8) {
|
||||||
printk(KERN_WARNING "%s: invalid incoming packet size (%d)\n",
|
printk(KERN_WARNING "%s: invalid incoming packet size (%d)\n",
|
||||||
|
@ -577,12 +578,12 @@ static void incoming_packet(struct sasem_context *context,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
if (debug) {
|
||||||
int i;
|
printk(KERN_INFO "Incoming data: ");
|
||||||
for (i = 0; i < 8; ++i)
|
for (i = 0; i < 8; ++i)
|
||||||
printk(KERN_INFO "%02x ", buf[i]);
|
printk(KERN_CONT "%02x ", buf[i]);
|
||||||
printk(KERN_INFO "\n");
|
printk(KERN_CONT "\n");
|
||||||
#endif
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Lirc could deal with the repeat code, but we really need to block it
|
* Lirc could deal with the repeat code, but we really need to block it
|
||||||
|
|
Loading…
Reference in a new issue