tpm: use %*ph to print small buffer
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 30 Jul 2020 16:16:13 +0000 (19:16 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Thu, 1 Oct 2020 21:21:03 +0000 (00:21 +0300)
commite08c6d3b19930f84a8da8c18710eefdfa48a9ceb
treeef7c41d2fc29ad838683b21205bbc7a18d6c553a
parenta4c3049784551f6622be7f9a0a2dc993d4ba3149
tpm: use %*ph to print small buffer

Use %*ph format to print small buffer as hex string.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-sysfs.c