Commit 4fa4626c authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

USB: cdc-acm: clean up verbose debug

Clean up use of verbose debug.
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a5cc7ef9
...@@ -94,12 +94,6 @@ static DEFINE_MUTEX(open_mutex); ...@@ -94,12 +94,6 @@ static DEFINE_MUTEX(open_mutex);
static const struct tty_port_operations acm_port_ops = { static const struct tty_port_operations acm_port_ops = {
}; };
#ifdef VERBOSE_DEBUG
#define verbose 1
#else
#define verbose 0
#endif
/* /*
* Functions for ACM control messages. * Functions for ACM control messages.
*/ */
...@@ -528,9 +522,8 @@ static void acm_write_bulk(struct urb *urb) ...@@ -528,9 +522,8 @@ static void acm_write_bulk(struct urb *urb)
struct acm *acm = wb->instance; struct acm *acm = wb->instance;
unsigned long flags; unsigned long flags;
if (verbose || urb->status if (urb->status || (urb->actual_length != urb->transfer_buffer_length))
|| (urb->actual_length != urb->transfer_buffer_length)) dev_vdbg(&acm->data->dev, "%s - len %d/%d, status %d\n",
dev_dbg(&acm->data->dev, "%s - len %d/%d, status %d\n",
__func__, __func__,
urb->actual_length, urb->actual_length,
urb->transfer_buffer_length, urb->transfer_buffer_length,
......
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