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
This commit is contained in:
committed by
Kalle Valo
parent
0e703de3ef
commit
d38c9df53a
@@ -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) {
|
for (i = 0 ; i < buf_size ; i += 8) {
|
||||||
if (i % page_size == 0)
|
if (i % page_size == 0)
|
||||||
seq_printf(m, "PAGE %d\n", (i + offset) / page_size);
|
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",
|
seq_printf(m, "%8ph\n", buf + i);
|
||||||
*(buf + i), *(buf + i + 1),
|
|
||||||
*(buf + i + 2), *(buf + i + 3),
|
|
||||||
*(buf + i + 4), *(buf + i + 5),
|
|
||||||
*(buf + i + 6), *(buf + i + 7));
|
|
||||||
}
|
}
|
||||||
vfree(buf);
|
vfree(buf);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user