]> 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)
commit2f00565d583755b7c9536c76024c1340d8f5c571
tree42bf791e892dda8fba93538764f58ec8844ce0a9
parent441a622949356e3095587c396d3220a9536e0ee2
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