summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/dvb-usb-v2/usb_urb.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-08-16 22:07:08 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-13 13:37:09 -0300
commit7fa8694acf90f16b845d6ec7d1a6c6728ec8768b (patch)
tree2ab6c33e5440c48a977785037f1a9402419e6155 /drivers/media/usb/dvb-usb-v2/usb_urb.c
parent64cbeb2818c9308a9fa9e25d50b676f66335cd9f (diff)
downloadblackbird-obmc-linux-7fa8694acf90f16b845d6ec7d1a6c6728ec8768b.tar.gz
blackbird-obmc-linux-7fa8694acf90f16b845d6ec7d1a6c6728ec8768b.zip
[media] dvb_usb_v2: use ratelimited debugs where appropriate
Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/usb_urb.c')
-rw-r--r--drivers/media/usb/dvb-usb-v2/usb_urb.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/usb_urb.c b/drivers/media/usb/dvb-usb-v2/usb_urb.c
index eaf673a3978d..5989b6590377 100644
--- a/drivers/media/usb/dvb-usb-v2/usb_urb.c
+++ b/drivers/media/usb/dvb-usb-v2/usb_urb.c
@@ -22,9 +22,9 @@ static void usb_urb_complete(struct urb *urb)
int i;
u8 *b;
- dev_dbg(&stream->udev->dev, "%s: %s urb completed status=%d " \
- "length=%d/%d pack_num=%d errors=%d\n", __func__,
- ptype == PIPE_ISOCHRONOUS ? "isoc" : "bulk",
+ dev_dbg_ratelimited(&stream->udev->dev, "%s: %s urb completed " \
+ "status=%d length=%d/%d pack_num=%d errors=%d\n",
+ __func__, ptype == PIPE_ISOCHRONOUS ? "isoc" : "bulk",
urb->status, urb->actual_length,
urb->transfer_buffer_length,
urb->number_of_packets, urb->error_count);
@@ -38,7 +38,8 @@ static void usb_urb_complete(struct urb *urb)
case -ESHUTDOWN:
return;
default: /* error */
- dev_dbg(&stream->udev->dev, "%s: urb completition failed=%d\n",
+ dev_dbg_ratelimited(&stream->udev->dev,
+ "%s: urb completition failed=%d\n",
__func__, urb->status);
break;
}
OpenPOWER on IntegriCloud