提交 7fa8694a 编写于 作者: A Antti Palosaari 提交者: Mauro Carvalho Chehab

[media] dvb_usb_v2: use ratelimited debugs where appropriate

Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 64cbeb28
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册