]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hid-wiimote: print small buffers via %*phC
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 3 Sep 2013 14:48:26 +0000 (17:48 +0300)
committerJiri Kosina <jkosina@suse.cz>
Wed, 4 Sep 2013 09:42:10 +0000 (11:42 +0200)
commit4fcac4a5853c02d97703e58f4f92e055c381d0d4
tree42bf791e892dda8fba93538764f58ec8844ce0a9
parent79387436650f03c80c82a51d34165886ca14dc78
HID: hid-wiimote: print small buffers via %*phC

Instead of passing each byte through stack let's use %*phC specifier to dump
buffer as a hex string.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wiimote-core.c