Skip to content

Commit

Permalink
[media] dvb_usb_v2: use ratelimited debugs where appropriate
Browse files Browse the repository at this point in the history
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Sep 13, 2012
1 parent 64cbeb2 commit 7fa8694
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/media/usb/dvb-usb-v2/usb_urb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}
Expand Down

0 comments on commit 7fa8694

Please sign in to comment.