提交 638054ab 编写于 作者: M Mauro Carvalho Chehab

tm6000: Remove some ugly debug code

Those time debugs were here just while developing the driver. They are
not really needed, as kernel may be configured to print jiffies with
printk's. Also, it breaks, if more than one device is connected.
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 fcb97573
...@@ -37,7 +37,6 @@ int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req, ...@@ -37,7 +37,6 @@ int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req,
{ {
int ret, i; int ret, i;
unsigned int pipe; unsigned int pipe;
static int ini = 0, last = 0, n = 0;
u8 *data = NULL; u8 *data = NULL;
if (len) if (len)
...@@ -52,19 +51,12 @@ int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req, ...@@ -52,19 +51,12 @@ int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req,
} }
if (tm6000_debug & V4L2_DEBUG_I2C) { if (tm6000_debug & V4L2_DEBUG_I2C) {
if (!ini) printk("(dev %p, pipe %08x): ", dev->udev, pipe);
last = ini = jiffies;
printk("%06i (dev %p, pipe %08x): ", n, dev->udev, pipe); printk("%s: %02x %02x %02x %02x %02x %02x %02x %02x ",
printk("%s: %06u ms %06u ms %02x %02x %02x %02x %02x %02x %02x %02x ",
(req_type & USB_DIR_IN) ? " IN" : "OUT", (req_type & USB_DIR_IN) ? " IN" : "OUT",
jiffies_to_msecs(jiffies-last),
jiffies_to_msecs(jiffies-ini),
req_type, req, value&0xff, value>>8, index&0xff, req_type, req, value&0xff, value>>8, index&0xff,
index>>8, len&0xff, len>>8); index>>8, len&0xff, len>>8);
last = jiffies;
n++;
if (!(req_type & USB_DIR_IN)) { if (!(req_type & USB_DIR_IN)) {
printk(">>> "); printk(">>> ");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册