diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-07-03 17:09:22 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-08-18 23:47:59 +0300 |
commit | 8325ec08d67d8f669c32137a5ab2724f0a76de77 (patch) | |
tree | e618ca4a015d8d5bf6372d8066b60d6f8760725c /drivers/mfd | |
parent | 2ccfad1c2be781f3695f213de740a26d3e6913a3 (diff) | |
download | linux-8325ec08d67d8f669c32137a5ab2724f0a76de77.tar.xz |
mfd: ipaq-micro: 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.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230703140923.2840-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ipaq-micro.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mfd/ipaq-micro.c b/drivers/mfd/ipaq-micro.c index 6d3968458e81..cddfd2e808f2 100644 --- a/drivers/mfd/ipaq-micro.c +++ b/drivers/mfd/ipaq-micro.c @@ -131,10 +131,7 @@ static void micro_rx_msg(struct ipaq_micro *micro, u8 id, int len, u8 *data) break; default: dev_err(micro->dev, - "unknown msg %d [%d] ", id, len); - for (i = 0; i < len; ++i) - pr_cont("0x%02x ", data[i]); - pr_cont("\n"); + "unknown msg %d [%d] %*ph\n", id, len, len, data); } spin_unlock(µ->lock); } |