USB: use %*ph specifier in uss720 driver
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Dec 2014 12:35:29 +0000 (14:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 19:37:18 +0000 (11:37 -0800)
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>
drivers/usb/misc/uss720.c

index 40ef40affe8345e6a34557392719f6013c905d22..588d62a73e1ab230037ca8f755310e887708e35a 100644 (file)
@@ -124,12 +124,8 @@ static void async_complete(struct urb *urb)
        } else if (rq->dr->bRequest == 3) {
                memcpy(priv->reg, rq->reg, sizeof(priv->reg));
 #if 0
-               dev_dbg(&priv->usbdev->dev,
-                       "async_complete regs %02x %02x %02x %02x %02x %02x %02x\n",
-                       (unsigned int)priv->reg[0], (unsigned int)priv->reg[1],
-                       (unsigned int)priv->reg[2], (unsigned int)priv->reg[3],
-                       (unsigned int)priv->reg[4], (unsigned int)priv->reg[5],
-                       (unsigned int)priv->reg[6]);
+               dev_dbg(&priv->usbdev->dev, "async_complete regs %7ph\n",
+                       priv->reg);
 #endif
                /* if nAck interrupts are enabled and we have an interrupt, call the interrupt procedure */
                if (rq->reg[2] & rq->reg[1] & 0x10 && pp)
@@ -742,9 +738,7 @@ static int uss720_probe(struct usb_interface *intf,
        set_1284_register(pp, 2, 0x0c, GFP_KERNEL);
        /* debugging */
        get_1284_register(pp, 0, &reg, GFP_KERNEL);
-       dev_dbg(&intf->dev, "reg: %02x %02x %02x %02x %02x %02x %02x\n",
-               priv->reg[0], priv->reg[1], priv->reg[2], priv->reg[3],
-               priv->reg[4], priv->reg[5], priv->reg[6]);
+       dev_dbg(&intf->dev, "reg: %7ph\n", priv->reg);
 
        endpoint = &interface->endpoint[2];
        dev_dbg(&intf->dev, "epaddr %d interval %d\n",