diff options
author | Johan Hovold <jhovold@gmail.com> | 2011-03-22 06:12:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-13 19:18:28 -0400 |
commit | 4fa4626cd43679dc62a73ee3e347665e761abc9c (patch) | |
tree | a6b264bbc5d9db144e419de96a8c5f06898123c6 /drivers/usb/class | |
parent | a5cc7ef92f69a88a1984cc3e09f6c19656efeb2e (diff) |
USB: cdc-acm: clean up verbose debug
Clean up use of verbose debug.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/class')
-rw-r--r-- | drivers/usb/class/cdc-acm.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index fee7d8b94fe2..44a5291c5699 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c | |||
@@ -94,12 +94,6 @@ static DEFINE_MUTEX(open_mutex); | |||
94 | static const struct tty_port_operations acm_port_ops = { | 94 | static const struct tty_port_operations acm_port_ops = { |
95 | }; | 95 | }; |
96 | 96 | ||
97 | #ifdef VERBOSE_DEBUG | ||
98 | #define verbose 1 | ||
99 | #else | ||
100 | #define verbose 0 | ||
101 | #endif | ||
102 | |||
103 | /* | 97 | /* |
104 | * Functions for ACM control messages. | 98 | * Functions for ACM control messages. |
105 | */ | 99 | */ |
@@ -528,9 +522,8 @@ static void acm_write_bulk(struct urb *urb) | |||
528 | struct acm *acm = wb->instance; | 522 | struct acm *acm = wb->instance; |
529 | unsigned long flags; | 523 | unsigned long flags; |
530 | 524 | ||
531 | if (verbose || urb->status | 525 | if (urb->status || (urb->actual_length != urb->transfer_buffer_length)) |
532 | || (urb->actual_length != urb->transfer_buffer_length)) | 526 | dev_vdbg(&acm->data->dev, "%s - len %d/%d, status %d\n", |
533 | dev_dbg(&acm->data->dev, "%s - len %d/%d, status %d\n", | ||
534 | __func__, | 527 | __func__, |
535 | urb->actual_length, | 528 | urb->actual_length, |
536 | urb->transfer_buffer_length, | 529 | urb->transfer_buffer_length, |