Input: atmel_mxt_ts - simplify mxt_dump_message
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 4 Oct 2012 07:02:59 +0000 (00:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 5 Oct 2012 06:09:33 +0000 (23:09 -0700)
Use %*ph format specifier to print small buffer.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c

index e92615d0b1b0330b334b1a54a603354fdc3a8960..1df2396af0085b4e719e7d25ec5ea58d9cc2034a 100644 (file)
@@ -320,10 +320,8 @@ static bool mxt_object_writable(unsigned int type)
 static void mxt_dump_message(struct device *dev,
                             struct mxt_message *message)
 {
-       dev_dbg(dev, "reportid: %u\tmessage: %02x %02x %02x %02x %02x %02x %02x\n",
-               message->reportid, message->message[0], message->message[1],
-               message->message[2], message->message[3], message->message[4],
-               message->message[5], message->message[6]);
+       dev_dbg(dev, "reportid: %u\tmessage: %*ph\n",
+               message->reportid, 7, message->message);
 }
 
 static int mxt_check_bootloader(struct i2c_client *client,