mirror of https://gitee.com/openkylin/linux.git
[media] imon: use %*ph to do small hexa dumps
Since commit 563873318d
("Merge branch 'printk-cleanups"),
continuation lines require KERN_CONT. Instead, let's just
use %*ph to print the buffer.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
69396c4e2a
commit
832d40c028
|
@ -1593,7 +1593,6 @@ static void imon_incoming_packet(struct imon_context *ictx,
|
||||||
struct device *dev = ictx->dev;
|
struct device *dev = ictx->dev;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
u32 kc;
|
u32 kc;
|
||||||
int i;
|
|
||||||
u64 scancode;
|
u64 scancode;
|
||||||
int press_type = 0;
|
int press_type = 0;
|
||||||
int msec;
|
int msec;
|
||||||
|
@ -1664,10 +1663,8 @@ static void imon_incoming_packet(struct imon_context *ictx,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debug) {
|
if (debug) {
|
||||||
printk(KERN_INFO "intf%d decoded packet: ", intf);
|
printk(KERN_INFO "intf%d decoded packet: %*ph\n",
|
||||||
for (i = 0; i < len; ++i)
|
intf, len, buf);
|
||||||
printk("%02x ", buf[i]);
|
|
||||||
printk("\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
press_type = imon_parse_press_type(ictx, buf, ktype);
|
press_type = imon_parse_press_type(ictx, buf, ktype);
|
||||||
|
|
Loading…
Reference in New Issue