diff options
| -rw-r--r-- | drivers/staging/tm6000/tm6000-core.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/staging/tm6000/tm6000-core.c b/drivers/staging/tm6000/tm6000-core.c index 9b451018ef98..0883ea5c08f9 100644 --- a/drivers/staging/tm6000/tm6000-core.c +++ b/drivers/staging/tm6000/tm6000-core.c | |||
| @@ -37,7 +37,6 @@ int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req, | |||
| 37 | { | 37 | { |
| 38 | int ret, i; | 38 | int ret, i; |
| 39 | unsigned int pipe; | 39 | unsigned int pipe; |
| 40 | static int ini = 0, last = 0, n = 0; | ||
| 41 | u8 *data = NULL; | 40 | u8 *data = NULL; |
| 42 | 41 | ||
| 43 | if (len) | 42 | if (len) |
| @@ -52,19 +51,12 @@ int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req, | |||
| 52 | } | 51 | } |
| 53 | 52 | ||
| 54 | if (tm6000_debug & V4L2_DEBUG_I2C) { | 53 | if (tm6000_debug & V4L2_DEBUG_I2C) { |
| 55 | if (!ini) | 54 | printk("(dev %p, pipe %08x): ", dev->udev, pipe); |
| 56 | last = ini = jiffies; | ||
| 57 | 55 | ||
| 58 | printk("%06i (dev %p, pipe %08x): ", n, dev->udev, pipe); | 56 | printk("%s: %02x %02x %02x %02x %02x %02x %02x %02x ", |
| 59 | |||
| 60 | printk("%s: %06u ms %06u ms %02x %02x %02x %02x %02x %02x %02x %02x ", | ||
| 61 | (req_type & USB_DIR_IN) ? " IN" : "OUT", | 57 | (req_type & USB_DIR_IN) ? " IN" : "OUT", |
| 62 | jiffies_to_msecs(jiffies-last), | ||
| 63 | jiffies_to_msecs(jiffies-ini), | ||
| 64 | req_type, req, value&0xff, value>>8, index&0xff, | 58 | req_type, req, value&0xff, value>>8, index&0xff, |
| 65 | index>>8, len&0xff, len>>8); | 59 | index>>8, len&0xff, len>>8); |
| 66 | last = jiffies; | ||
| 67 | n++; | ||
| 68 | 60 | ||
| 69 | if (!(req_type & USB_DIR_IN)) { | 61 | if (!(req_type & USB_DIR_IN)) { |
| 70 | printk(">>> "); | 62 | printk(">>> "); |
