dm integrity: Use %*ph for printing hexdump of a small buffer
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 12 Jun 2023 21:47:51 +0000 (00:47 +0300)
committerMike Snitzer <snitzer@kernel.org>
Thu, 22 Jun 2023 22:39:50 +0000 (18:39 -0400)
commit25c9a4ab4d73d251886e6b317181cfc433e011f9
tree336972acf20756d1755a753325fa8a03ede11b6a
parentfa375646241b5350f7326fd4d686891b95d9fbe5
dm integrity: Use %*ph for printing hexdump of a small buffer

The kernel already has a helper to print a hexdump of a small
buffer via pointer extension. Use that instead of open coded
variant.

In long term it helps to kill pr_cont() or at least narrow down
its use.

Note, the format is slightly changed, i.e. the trailing space is
always printed. Also the IV dump is limited by 64 bytes which seems
fine.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-integrity.c