ARM: davinci: re-use %*ph specifier
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 1 Oct 2015 13:13:05 +0000 (16:13 +0300)
committerSekhar Nori <nsekhar@ti.com>
Wed, 7 Oct 2015 11:10:58 +0000 (16:40 +0530)
%*ph specifier allows to dump data in hex format using the pointer
to a buffer. This is suitable to use here.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-dm644x-evm.c

index 1a0898c..bbdd2d6 100644 (file)
@@ -546,9 +546,7 @@ static int dm6444evm_msp430_get_pins(void)
        if (status < 0)
                return status;
 
-       dev_dbg(&dm6446evm_msp->dev,
-               "PINS: %02x %02x %02x %02x\n",
-               buf[0], buf[1], buf[2], buf[3]);
+       dev_dbg(&dm6446evm_msp->dev, "PINS: %4ph\n", buf);
 
        return (buf[3] << 8) | buf[2];
 }