diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-12-29 07:35:29 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-09 14:37:18 -0500 |
commit | 5d31a6dc78b414406b04bc76f7cce19390663fc7 (patch) | |
tree | 0c7020e487367e60a7b3661b77352724eae4e278 | |
parent | 78a629e95137bb4d39d5e05d03273685401dce06 (diff) |
USB: use %*ph specifier in uss720 driver
There is a %*ph specifier that allows to dump small buffers. This patch
converts the code to use the specifier.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/misc/uss720.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/usb/misc/uss720.c b/drivers/usb/misc/uss720.c index 40ef40affe83..588d62a73e1a 100644 --- a/drivers/usb/misc/uss720.c +++ b/drivers/usb/misc/uss720.c | |||
@@ -124,12 +124,8 @@ static void async_complete(struct urb *urb) | |||
124 | } else if (rq->dr->bRequest == 3) { | 124 | } else if (rq->dr->bRequest == 3) { |
125 | memcpy(priv->reg, rq->reg, sizeof(priv->reg)); | 125 | memcpy(priv->reg, rq->reg, sizeof(priv->reg)); |
126 | #if 0 | 126 | #if 0 |
127 | dev_dbg(&priv->usbdev->dev, | 127 | dev_dbg(&priv->usbdev->dev, "async_complete regs %7ph\n", |
128 | "async_complete regs %02x %02x %02x %02x %02x %02x %02x\n", | 128 | priv->reg); |
129 | (unsigned int)priv->reg[0], (unsigned int)priv->reg[1], | ||
130 | (unsigned int)priv->reg[2], (unsigned int)priv->reg[3], | ||
131 | (unsigned int)priv->reg[4], (unsigned int)priv->reg[5], | ||
132 | (unsigned int)priv->reg[6]); | ||
133 | #endif | 129 | #endif |
134 | /* if nAck interrupts are enabled and we have an interrupt, call the interrupt procedure */ | 130 | /* if nAck interrupts are enabled and we have an interrupt, call the interrupt procedure */ |
135 | if (rq->reg[2] & rq->reg[1] & 0x10 && pp) | 131 | if (rq->reg[2] & rq->reg[1] & 0x10 && pp) |
@@ -742,9 +738,7 @@ static int uss720_probe(struct usb_interface *intf, | |||
742 | set_1284_register(pp, 2, 0x0c, GFP_KERNEL); | 738 | set_1284_register(pp, 2, 0x0c, GFP_KERNEL); |
743 | /* debugging */ | 739 | /* debugging */ |
744 | get_1284_register(pp, 0, ®, GFP_KERNEL); | 740 | get_1284_register(pp, 0, ®, GFP_KERNEL); |
745 | dev_dbg(&intf->dev, "reg: %02x %02x %02x %02x %02x %02x %02x\n", | 741 | dev_dbg(&intf->dev, "reg: %7ph\n", priv->reg); |
746 | priv->reg[0], priv->reg[1], priv->reg[2], priv->reg[3], | ||
747 | priv->reg[4], priv->reg[5], priv->reg[6]); | ||
748 | 742 | ||
749 | endpoint = &interface->endpoint[2]; | 743 | endpoint = &interface->endpoint[2]; |
750 | dev_dbg(&intf->dev, "epaddr %d interval %d\n", | 744 | dev_dbg(&intf->dev, "epaddr %d interval %d\n", |