diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-04-16 12:01:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-17 13:05:35 -0400 |
commit | 8e34c6c2ee9ed4cafe01e760e0c4bc1c8f7e9cb7 (patch) | |
tree | a588df4f1a8400f94c415459b83567dcc2e470a2 /drivers/usb/serial/kobil_sct.c | |
parent | fbf947736968cbb0e55ec4b5d861d31a4a106c99 (diff) |
USB: kobil_sct: fix broken debug code
Replace broken and commented-out debug code with usb_serial_debug_data.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/kobil_sct.c')
-rw-r--r-- | drivers/usb/serial/kobil_sct.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index 903d938e174b..da1a372fc46c 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c | |||
@@ -333,24 +333,8 @@ static void kobil_read_int_callback(struct urb *urb) | |||
333 | } | 333 | } |
334 | 334 | ||
335 | if (urb->actual_length) { | 335 | if (urb->actual_length) { |
336 | 336 | usb_serial_debug_data(&port->dev, __func__, urb->actual_length, | |
337 | /* BEGIN DEBUG */ | 337 | data); |
338 | /* | ||
339 | char *dbg_data; | ||
340 | |||
341 | dbg_data = kzalloc((3 * purb->actual_length + 10) | ||
342 | * sizeof(char), GFP_KERNEL); | ||
343 | if (! dbg_data) { | ||
344 | return; | ||
345 | } | ||
346 | for (i = 0; i < purb->actual_length; i++) { | ||
347 | sprintf(dbg_data +3*i, "%02X ", data[i]); | ||
348 | } | ||
349 | dev_dbg(&port->dev, " <-- %s\n", dbg_data); | ||
350 | kfree(dbg_data); | ||
351 | */ | ||
352 | /* END DEBUG */ | ||
353 | |||
354 | tty_insert_flip_string(&port->port, data, urb->actual_length); | 338 | tty_insert_flip_string(&port->port, data, urb->actual_length); |
355 | tty_flip_buffer_push(&port->port); | 339 | tty_flip_buffer_push(&port->port); |
356 | } | 340 | } |