Commit 7fa8694a authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] dvb_usb_v2: use ratelimited debugs where appropriate

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 64cbeb28
...@@ -22,9 +22,9 @@ static void usb_urb_complete(struct urb *urb) ...@@ -22,9 +22,9 @@ static void usb_urb_complete(struct urb *urb)
int i; int i;
u8 *b; u8 *b;
dev_dbg(&stream->udev->dev, "%s: %s urb completed status=%d " \ dev_dbg_ratelimited(&stream->udev->dev, "%s: %s urb completed " \
"length=%d/%d pack_num=%d errors=%d\n", __func__, "status=%d length=%d/%d pack_num=%d errors=%d\n",
ptype == PIPE_ISOCHRONOUS ? "isoc" : "bulk", __func__, ptype == PIPE_ISOCHRONOUS ? "isoc" : "bulk",
urb->status, urb->actual_length, urb->status, urb->actual_length,
urb->transfer_buffer_length, urb->transfer_buffer_length,
urb->number_of_packets, urb->error_count); urb->number_of_packets, urb->error_count);
...@@ -38,7 +38,8 @@ static void usb_urb_complete(struct urb *urb) ...@@ -38,7 +38,8 @@ static void usb_urb_complete(struct urb *urb)
case -ESHUTDOWN: case -ESHUTDOWN:
return; return;
default: /* error */ 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); __func__, urb->status);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment