[media] dvb_usb_v2: use ratelimited debugs where appropriate
authorAntti Palosaari <crope@iki.fi>
Fri, 17 Aug 2012 01:07:08 +0000 (22:07 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Sep 2012 16:37:09 +0000 (13:37 -0300)
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/dvb-usb-v2/usb_urb.c

index eaf673a3978d335221b16c17f4eae5a9221c80e7..5989b65903779b08bb70c54251bf186ed47846c4 100644 (file)
@@ -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;
        }