* [PATCH rtw-next] wifi: rtw88: debug: explicitly cast to u8 for %02x format in rtw_debugfs_get_tx_pwr_tbl()
@ 2026-11-18 2:52 Ping-Ke Shih
0 siblings, 0 replies; only message in thread
From: Ping-Ke Shih @ 2026-11-18 2:52 UTC (permalink / raw)
To: linux-wireless
Explicitly cast to u8 to avoid smatch (with -p=kernel) warning:
warn: argument 4 to %02x specifier has type 'schar'
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
drivers/net/wireless/realtek/rtw88/debug.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/realtek/rtw88/debug.c b/drivers/net/wireless/realtek/rtw88/debug.c
index 1061a1f4d5e9..11de50d39939 100644
--- a/drivers/net/wireless/realtek/rtw88/debug.c
+++ b/drivers/net/wireless/realtek/rtw88/debug.c
@@ -739,8 +739,8 @@ static int rtw_debugfs_get_tx_pwr_tbl(struct seq_file *m, void *v)
seq_printf(m, "%4c ", path + 'A');
rtw_print_rate(m, rate);
seq_printf(m, " %3u(0x%02x) %4u %4d (%4d %4d %4d) %4d\n",
- hal->tx_pwr_tbl[path][rate],
- hal->tx_pwr_tbl[path][rate],
+ (u8)hal->tx_pwr_tbl[path][rate],
+ (u8)hal->tx_pwr_tbl[path][rate],
pwr_param.pwr_base,
min3(pwr_param.pwr_offset,
pwr_param.pwr_limit,
base-commit: 0bdc579dbfc251a6b6838ee9459b6771b948c617
--
2.53.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-18 2:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18 2:52 [PATCH rtw-next] wifi: rtw88: debug: explicitly cast to u8 for %02x format in rtw_debugfs_get_tx_pwr_tbl() Ping-Ke Shih
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox