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)
commit95f712662d96ef7e50f5ca882c3f83d16f1e28f0
tree42bf791e892dda8fba93538764f58ec8844ce0a9
parent8e22ecb603c88b7397ab2e80b7b0811b8a1318f5
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