diff options
author | Johan Hovold <jhovold@gmail.com> | 2011-03-22 06:12:17 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-13 19:18:28 -0400 |
commit | 5e9e75f8bd97864d552ec2b8d1a00e2b3012a6b3 (patch) | |
tree | 65f397c9b1711c435419bfef2dfe02708fb1a87a /drivers | |
parent | 4fa4626cd43679dc62a73ee3e347665e761abc9c (diff) |
USB: cdc-acm: use dev_vdbg in read/write paths
Replace dev_dbg with verbose dev_vdbg in read/write paths where
appropriate.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/class/cdc-acm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 44a5291c5699..3c0d4b913a89 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c | |||
@@ -208,7 +208,7 @@ static int acm_write_start(struct acm *acm, int wbn) | |||
208 | return -ENODEV; | 208 | return -ENODEV; |
209 | } | 209 | } |
210 | 210 | ||
211 | dev_dbg(&acm->data->dev, "%s - susp_count %d\n", __func__, | 211 | dev_vdbg(&acm->data->dev, "%s - susp_count %d\n", __func__, |
212 | acm->susp_count); | 212 | acm->susp_count); |
213 | usb_autopm_get_interface_async(acm->control); | 213 | usb_autopm_get_interface_async(acm->control); |
214 | if (acm->susp_count) { | 214 | if (acm->susp_count) { |
@@ -361,7 +361,7 @@ static void acm_read_bulk(struct urb *urb) | |||
361 | struct acm *acm = rcv->instance; | 361 | struct acm *acm = rcv->instance; |
362 | int status = urb->status; | 362 | int status = urb->status; |
363 | 363 | ||
364 | dev_dbg(&acm->data->dev, "%s - status %d\n", __func__, status); | 364 | dev_vdbg(&acm->data->dev, "%s - status %d\n", __func__, status); |
365 | 365 | ||
366 | if (!ACM_READY(acm)) { | 366 | if (!ACM_READY(acm)) { |
367 | dev_dbg(&acm->data->dev, "%s - acm not ready\n", __func__); | 367 | dev_dbg(&acm->data->dev, "%s - acm not ready\n", __func__); |
@@ -404,7 +404,7 @@ static void acm_rx_tasklet(unsigned long _acm) | |||
404 | unsigned long flags; | 404 | unsigned long flags; |
405 | unsigned char throttled; | 405 | unsigned char throttled; |
406 | 406 | ||
407 | dev_dbg(&acm->data->dev, "%s\n", __func__); | 407 | dev_vdbg(&acm->data->dev, "%s\n", __func__); |
408 | 408 | ||
409 | if (!ACM_READY(acm)) { | 409 | if (!ACM_READY(acm)) { |
410 | dev_dbg(&acm->data->dev, "%s - acm not ready\n", __func__); | 410 | dev_dbg(&acm->data->dev, "%s - acm not ready\n", __func__); |
@@ -432,7 +432,7 @@ next_buffer: | |||
432 | list_del(&buf->list); | 432 | list_del(&buf->list); |
433 | spin_unlock_irqrestore(&acm->read_lock, flags); | 433 | spin_unlock_irqrestore(&acm->read_lock, flags); |
434 | 434 | ||
435 | dev_dbg(&acm->data->dev, "%s - processing buf 0x%p, size = %d\n", | 435 | dev_vdbg(&acm->data->dev, "%s - processing buf 0x%p, size = %d\n", |
436 | __func__, buf, buf->size); | 436 | __func__, buf, buf->size); |
437 | if (tty) { | 437 | if (tty) { |
438 | spin_lock_irqsave(&acm->throttle_lock, flags); | 438 | spin_lock_irqsave(&acm->throttle_lock, flags); |
@@ -505,7 +505,7 @@ urbs: | |||
505 | return; | 505 | return; |
506 | } else { | 506 | } else { |
507 | spin_unlock_irqrestore(&acm->read_lock, flags); | 507 | spin_unlock_irqrestore(&acm->read_lock, flags); |
508 | dev_dbg(&acm->data->dev, | 508 | dev_vdbg(&acm->data->dev, |
509 | "%s - sending urb 0x%p, rcv 0x%p, buf 0x%p\n", | 509 | "%s - sending urb 0x%p, rcv 0x%p, buf 0x%p\n", |
510 | __func__, rcv->urb, rcv, buf); | 510 | __func__, rcv->urb, rcv, buf); |
511 | } | 511 | } |
@@ -719,7 +719,7 @@ static int acm_tty_write(struct tty_struct *tty, | |||
719 | if (!count) | 719 | if (!count) |
720 | return 0; | 720 | return 0; |
721 | 721 | ||
722 | dev_dbg(&acm->data->dev, "%s - count %d\n", __func__, count); | 722 | dev_vdbg(&acm->data->dev, "%s - count %d\n", __func__, count); |
723 | 723 | ||
724 | spin_lock_irqsave(&acm->write_lock, flags); | 724 | spin_lock_irqsave(&acm->write_lock, flags); |
725 | wbn = acm_wb_alloc(acm); | 725 | wbn = acm_wb_alloc(acm); |
@@ -730,7 +730,7 @@ static int acm_tty_write(struct tty_struct *tty, | |||
730 | wb = &acm->wb[wbn]; | 730 | wb = &acm->wb[wbn]; |
731 | 731 | ||
732 | count = (count > acm->writesize) ? acm->writesize : count; | 732 | count = (count > acm->writesize) ? acm->writesize : count; |
733 | dev_dbg(&acm->data->dev, "%s - write %d\n", __func__, count); | 733 | dev_vdbg(&acm->data->dev, "%s - write %d\n", __func__, count); |
734 | memcpy(wb->buf, buf, count); | 734 | memcpy(wb->buf, buf, count); |
735 | wb->len = count; | 735 | wb->len = count; |
736 | spin_unlock_irqrestore(&acm->write_lock, flags); | 736 | spin_unlock_irqrestore(&acm->write_lock, flags); |