diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-06-03 15:56:48 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-06-08 11:07:47 +0300 |
commit | d38c9df53ad6cd374a047126cd6aa5c5dffb455f (patch) | |
tree | 02a88a7d47922d9de83b7c3a31dec32077161ff2 | |
parent | 0e703de3ef41692f765e80884caa36fed9da05df (diff) | |
download | linux-d38c9df53ad6cd374a047126cd6aa5c5dffb455f.tar.xz |
wifi: rtw88: 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>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220603125648.46873-1-andriy.shevchenko@linux.intel.com
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/debug.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/debug.c b/drivers/net/wireless/realtek/rtw88/debug.c index 1a52ff585fbc..7cde6bcf253b 100644 --- a/drivers/net/wireless/realtek/rtw88/debug.c +++ b/drivers/net/wireless/realtek/rtw88/debug.c @@ -269,11 +269,7 @@ static int rtw_debugfs_get_rsvd_page(struct seq_file *m, void *v) for (i = 0 ; i < buf_size ; i += 8) { if (i % page_size == 0) seq_printf(m, "PAGE %d\n", (i + offset) / page_size); - seq_printf(m, "%2.2x %2.2x %2.2x %2.2x %2.2x %2.2x %2.2x %2.2x\n", - *(buf + i), *(buf + i + 1), - *(buf + i + 2), *(buf + i + 3), - *(buf + i + 4), *(buf + i + 5), - *(buf + i + 6), *(buf + i + 7)); + seq_printf(m, "%8ph\n", buf + i); } vfree(buf); |