diff options
author | Antti Palosaari <crope@iki.fi> | 2012-08-16 21:07:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-13 12:37:09 -0400 |
commit | 7fa8694acf90f16b845d6ec7d1a6c6728ec8768b (patch) | |
tree | 2ab6c33e5440c48a977785037f1a9402419e6155 /drivers/media | |
parent | 64cbeb2818c9308a9fa9e25d50b676f66335cd9f (diff) |
[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')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/usb_urb.c | 9 |
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 eaf673a3978..5989b659037 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) | |||
22 | int i; | 22 | int i; |
23 | u8 *b; | 23 | u8 *b; |
24 | 24 | ||
25 | dev_dbg(&stream->udev->dev, "%s: %s urb completed status=%d " \ | 25 | dev_dbg_ratelimited(&stream->udev->dev, "%s: %s urb completed " \ |
26 | "length=%d/%d pack_num=%d errors=%d\n", __func__, | 26 | "status=%d length=%d/%d pack_num=%d errors=%d\n", |
27 | ptype == PIPE_ISOCHRONOUS ? "isoc" : "bulk", | 27 | __func__, ptype == PIPE_ISOCHRONOUS ? "isoc" : "bulk", |
28 | urb->status, urb->actual_length, | 28 | urb->status, urb->actual_length, |
29 | urb->transfer_buffer_length, | 29 | urb->transfer_buffer_length, |
30 | urb->number_of_packets, urb->error_count); | 30 | urb->number_of_packets, urb->error_count); |
@@ -38,7 +38,8 @@ static void usb_urb_complete(struct urb *urb) | |||
38 | case -ESHUTDOWN: | 38 | case -ESHUTDOWN: |
39 | return; | 39 | return; |
40 | default: /* error */ | 40 | default: /* error */ |
41 | dev_dbg(&stream->udev->dev, "%s: urb completition failed=%d\n", | 41 | dev_dbg_ratelimited(&stream->udev->dev, |
42 | "%s: urb completition failed=%d\n", | ||
42 | __func__, urb->status); | 43 | __func__, urb->status); |
43 | break; | 44 | break; |
44 | } | 45 | } |