git: ee139670c0a1 - stable/13 - rtw89: fix -Wunused-but-set-variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Jun 2023 12:08:27 UTC
The branch stable/13 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=ee139670c0a1b2133190cd786e7ac2506a5a2a22
commit ee139670c0a1b2133190cd786e7ac2506a5a2a22
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-03-23 00:29:38 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-06-26 09:07:39 +0000
rtw89: fix -Wunused-but-set-variable
Fix a -Wunused-but-set-variable warning by adding the field to the
debug logging as is done for other versions handler functions.
(cherry picked from commit 700acdc7b53213c1d9f35c05a1c1f58f285cd14d)
---
sys/contrib/dev/rtw89/coex.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sys/contrib/dev/rtw89/coex.c b/sys/contrib/dev/rtw89/coex.c
index 4779fe3ef1f1..aa90bf616b41 100644
--- a/sys/contrib/dev/rtw89/coex.c
+++ b/sys/contrib/dev/rtw89/coex.c
@@ -4092,8 +4092,13 @@ static void _update_wl_info(struct rtw89_dev *rtwdev)
}
rtw89_debug(rtwdev, RTW89_DBG_BTC,
+#if defined(__linux__)
"[BTC], cnt_connect = %d, link_mode = %d\n",
cnt_connect, wl_rinfo->link_mode);
+#elif defined(__FreeBSD__)
+ "[BTC], cnt_connect = %d, connecting = %d, link_mode = %d\n",
+ cnt_connect, cnt_connecting, wl_rinfo->link_mode);
+#endif
_fw_set_drv_info(rtwdev, CXDRVINFO_ROLE);
}