Commit e2a61151 authored by Dan Carpenter's avatar Dan Carpenter Committed by Kalle Valo

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: cad2bd8a ("wifi: rtw89: support firmware log with formatted text")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/0700c7b9-bfd3-4aa6-82bf-5bf3c74644e1@moroto.mountain
parent 186f2432
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment