diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2012-10-04 03:02:59 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-05 02:09:33 -0400 |
commit | eb007c8677a9b00e6bd24d1c3e161b3209fcd3be (patch) | |
tree | 734a1b990295ae95406a233315ce36a92f0ac0c3 /drivers | |
parent | fe494bc2f6e47f02a78ec4761117187db40381a6 (diff) |
Input: atmel_mxt_ts - simplify mxt_dump_message
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/touchscreen/atmel_mxt_ts.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index e92615d0b1b0..1df2396af008 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c | |||
@@ -320,10 +320,8 @@ static bool mxt_object_writable(unsigned int type) | |||
320 | static void mxt_dump_message(struct device *dev, | 320 | static void mxt_dump_message(struct device *dev, |
321 | struct mxt_message *message) | 321 | struct mxt_message *message) |
322 | { | 322 | { |
323 | dev_dbg(dev, "reportid: %u\tmessage: %02x %02x %02x %02x %02x %02x %02x\n", | 323 | dev_dbg(dev, "reportid: %u\tmessage: %*ph\n", |
324 | message->reportid, message->message[0], message->message[1], | 324 | message->reportid, 7, message->message); |
325 | message->message[2], message->message[3], message->message[4], | ||
326 | message->message[5], message->message[6]); | ||
327 | } | 325 | } |
328 | 326 | ||
329 | static int mxt_check_bootloader(struct i2c_client *client, | 327 | static int mxt_check_bootloader(struct i2c_client *client, |