Commit c35fbd03 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] au0828: Improve debug messages for urb_completion

Sometimes, it helps to know how much data was received by
urb_completion. Add that information to the optional debug
log.
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent d9e091fe
......@@ -114,16 +114,20 @@ static void urb_completion(struct urb *purb)
int ptype = usb_pipetype(purb->pipe);
unsigned char *ptr;
dprintk(2, "%s()\n", __func__);
dprintk(2, "%s: %d\n", __func__, purb->actual_length);
if (!dev)
if (!dev) {
dprintk(2, "%s: no dev!\n", __func__);
return;
}
if (dev->urb_streaming == 0)
if (dev->urb_streaming == 0) {
dprintk(2, "%s: not streaming!\n", __func__);
return;
}
if (ptype != PIPE_BULK) {
printk(KERN_ERR "%s() Unsupported URB type %d\n",
printk(KERN_ERR "%s: Unsupported URB type %d\n",
__func__, ptype);
return;
}
......
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