wifi: rtw89: fix a width vs precision bug
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 8 Aug 2023 05:36:09 +0000 (08:36 +0300)
committerKalle Valo <kvalo@kernel.org>
Mon, 21 Aug 2023 16:14:00 +0000 (19:14 +0300)
commite2a61151ff8c38ae7b3afae0e91cb97fb211a6bf
tree651067b95148be572192b6d2ce939de2545e20f8
parent186f2432741f6d28d86ff723ac7830446affddfc
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 <dan.carpenter@linaro.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/0700c7b9-bfd3-4aa6-82bf-5bf3c74644e1@moroto.mountain
drivers/net/wireless/realtek/rtw89/fw.c