aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-21 08:35:06 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-25 16:46:36 -0400
commitc35fbd03ae22ca7d36622f63d0e58dadc77dfc44 (patch)
tree7fc851099ad2468052123a02c3d4ece43b6b0dde
parentd9e091fe7118ce2902a6ad959c30b0f2d41351f0 (diff)
[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: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rwxr-xr-xdrivers/media/usb/au0828/au0828-dvb.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/media/usb/au0828/au0828-dvb.c b/drivers/media/usb/au0828/au0828-dvb.c
index 2019e4a168b2..ab5f93643021 100755
--- a/drivers/media/usb/au0828/au0828-dvb.c
+++ b/drivers/media/usb/au0828/au0828-dvb.c
@@ -114,16 +114,20 @@ static void urb_completion(struct urb *purb)
114 int ptype = usb_pipetype(purb->pipe); 114 int ptype = usb_pipetype(purb->pipe);
115 unsigned char *ptr; 115 unsigned char *ptr;
116 116
117 dprintk(2, "%s()\n", __func__); 117 dprintk(2, "%s: %d\n", __func__, purb->actual_length);
118 118
119 if (!dev) 119 if (!dev) {
120 dprintk(2, "%s: no dev!\n", __func__);
120 return; 121 return;
122 }
121 123
122 if (dev->urb_streaming == 0) 124 if (dev->urb_streaming == 0) {
125 dprintk(2, "%s: not streaming!\n", __func__);
123 return; 126 return;
127 }
124 128
125 if (ptype != PIPE_BULK) { 129 if (ptype != PIPE_BULK) {
126 printk(KERN_ERR "%s() Unsupported URB type %d\n", 130 printk(KERN_ERR "%s: Unsupported URB type %d\n",
127 __func__, ptype); 131 __func__, ptype);
128 return; 132 return;
129 } 133 }