提交 8e34c6c2 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

USB: kobil_sct: fix broken debug code

Replace broken and commented-out debug code with usb_serial_debug_data.
Signed-off-by: NJohan Hovold <jhovold@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 fbf94773
...@@ -333,24 +333,8 @@ static void kobil_read_int_callback(struct urb *urb) ...@@ -333,24 +333,8 @@ static void kobil_read_int_callback(struct urb *urb)
} }
if (urb->actual_length) { if (urb->actual_length) {
usb_serial_debug_data(&port->dev, __func__, urb->actual_length,
/* BEGIN DEBUG */ data);
/*
char *dbg_data;
dbg_data = kzalloc((3 * purb->actual_length + 10)
* sizeof(char), GFP_KERNEL);
if (! dbg_data) {
return;
}
for (i = 0; i < purb->actual_length; i++) {
sprintf(dbg_data +3*i, "%02X ", data[i]);
}
dev_dbg(&port->dev, " <-- %s\n", dbg_data);
kfree(dbg_data);
*/
/* END DEBUG */
tty_insert_flip_string(&port->port, data, urb->actual_length); tty_insert_flip_string(&port->port, data, urb->actual_length);
tty_flip_buffer_push(&port->port); tty_flip_buffer_push(&port->port);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册