From: Andy Shevchenko Date: Thu, 4 Oct 2012 07:02:59 +0000 (-0700) Subject: Input: atmel_mxt_ts - simplify mxt_dump_message X-Git-Tag: v3.7-rc4~7^2~7^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb007c8677a9b00e6bd24d1c3e161b3209fcd3be;p=platform%2Fupstream%2Fkernel-adaptation-pc.git Input: atmel_mxt_ts - simplify mxt_dump_message Use %*ph format specifier to print small buffer. Signed-off-by: Andy Shevchenko Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index e92615d..1df2396 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) 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,