Commit f3a75505 authored by Amber Thrall's avatar Amber Thrall Committed by Mauro Carvalho Chehab

[media] Staging: media: lirc: cleaned up packet dump in 2 files

lirc_imon.c and lirc_sasem.c contain an incoming_packet method that
is using deprecated printk's.  Removed blocks replacing with single
dev_info with a %*ph format instead.
Signed-off-by: default avatarAmber Thrall <amber.rose.thrall@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent c0d5b5fb
...@@ -606,7 +606,6 @@ static void imon_incoming_packet(struct imon_context *context, ...@@ -606,7 +606,6 @@ static void imon_incoming_packet(struct imon_context *context,
struct device *dev = context->driver->dev; struct device *dev = context->driver->dev;
int octet, bit; int octet, bit;
unsigned char mask; unsigned char mask;
int i;
/* /*
* just bail out if no listening IR client * just bail out if no listening IR client
...@@ -620,13 +619,8 @@ static void imon_incoming_packet(struct imon_context *context, ...@@ -620,13 +619,8 @@ static void imon_incoming_packet(struct imon_context *context,
return; return;
} }
if (debug) { if (debug)
dev_info(dev, "raw packet: "); dev_info(dev, "raw packet: %*ph\n", len, buf);
for (i = 0; i < len; ++i)
printk("%02x ", buf[i]);
printk("\n");
}
/* /*
* Translate received data to pulse and space lengths. * Translate received data to pulse and space lengths.
* Received data is active low, i.e. pulses are 0 and * Received data is active low, i.e. pulses are 0 and
......
...@@ -573,7 +573,6 @@ static void incoming_packet(struct sasem_context *context, ...@@ -573,7 +573,6 @@ 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) {
dev_warn(&context->dev->dev, dev_warn(&context->dev->dev,
...@@ -582,13 +581,8 @@ static void incoming_packet(struct sasem_context *context, ...@@ -582,13 +581,8 @@ static void incoming_packet(struct sasem_context *context,
return; return;
} }
if (debug) { if (debug)
printk(KERN_INFO "Incoming data: "); dev_info(&context->dev->dev, "Incoming data: %*ph\n", len, buf);
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 * Lirc could deal with the repeat code, but we really need to block it
* if it arrives too late. Otherwise we could repeat the wrong code. * if it arrives too late. Otherwise we could repeat the wrong code.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment