]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1617bf63466adad2f86eb78bd6cb8418f2134778
tree01d901dcdc68bbb795767763edb5d078d21501d9
parenta6929676a45dbcec9f54e6324069c09c7cef6ab6
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