git: 700acdc7b532 - main - rtw89: fix -Wunused-but-set-variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 Mar 2023 00:31:08 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=700acdc7b53213c1d9f35c05a1c1f58f285cd14d
commit 700acdc7b53213c1d9f35c05a1c1f58f285cd14d
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-03-23 00:29:38 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-03-23 00:29:38 +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.
MFC after: 3 days
---
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);
}