Signed-off-by: Antti Palosaari <cr...@iki.fi>
---
 drivers/media/usb/dvb-usb-v2/usb_urb.c | 9 +++++----
 1 file 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 eaf673a..5989b65 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;
        }
-- 
1.7.11.2

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to