tpm: simplify code by using %*phN specifier
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 9 Jul 2014 12:34:41 +0000 (15:34 +0300)
committerPeter Huewe <peterhuewe@gmx.de>
Tue, 29 Jul 2014 21:10:56 +0000 (23:10 +0200)
commita3d64df849bcb84220bf6db5773a10eee1fad4dc
treef742576f646c436f741d4a3449bd50b79a131e52
parent8e54caf407b98efa05409e1fee0e5381abd2b088
tpm: simplify code by using %*phN specifier

Instead of looping by ourselves we may use %*phN specifier to dump a small
buffer.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
[ PHuewe: removed now unused variable i ]
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_eventlog.c