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);
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;
}