hwmon: (occ) Replace open-coded variant of %*phN specifier
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 26 Jul 2022 14:31:10 +0000 (17:31 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 26 Jul 2022 15:02:51 +0000 (08:02 -0700)
commit03009a605f2ae18c0cb77a78b329f79821a4c545
tree01d901dcdc68bbb795767763edb5d078d21501d9
parent7d4edccc9bbfe1dcdff641343f7b0c6763fbe774
hwmon: (occ) Replace open-coded variant of %*phN specifier

printf()-like functions in the kernel have extensions, such as
%*phN to dump small pieces of memory as hex bytes.

Replace custom approach with the direct use of %*phN.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220726143110.4809-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/occ/common.c