> -----Original Message-----
> From: Dan Carpenter <[email protected]>
> Sent: Tuesday, August 8, 2023 1:36 PM
> To: Timlee <[email protected]>
> Cc: Ping-Ke Shih <[email protected]>; Kalle Valo <[email protected]>; [email protected];
> [email protected]
> Subject: [PATCH] wifi: rtw89: fix a width vs precision bug
>
> The "buf" is skb->data that comes from the firmware. We want to print
> "len" number of bytes. But there is a missing period so the "len"
> variable is used for formatting (width) instead of limiting the output
> (precision).
>
> Fixes: cad2bd8a136c ("wifi: rtw89: support firmware log with formatted text")
> Signed-off-by: Dan Carpenter <[email protected]>
Thanks for the fix.
Acked-by: Ping-Ke Shih <[email protected]>
> ---
> drivers/net/wireless/realtek/rtw89/fw.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireless/realtek/rtw89/fw.c b/drivers/net/wireless/realtek/rtw89/fw.c
> index 2811a94b5f69..bcd9050f989f 100644
> --- a/drivers/net/wireless/realtek/rtw89/fw.c
> +++ b/drivers/net/wireless/realtek/rtw89/fw.c
> @@ -1165,7 +1165,7 @@ void rtw89_fw_log_dump(struct rtw89_dev *rtwdev, u8 *buf, u32 len)
> return;
>
> plain_log:
> - rtw89_info(rtwdev, "C2H log: %*s", len, buf);
> + rtw89_info(rtwdev, "C2H log: %.*s", len, buf);
>
> }
>
> --
> 2.39.2
>
>
> ------Please consider the environment before printing this e-mail.