git: e51b46cefbfa - main - net80211: fix debug printf
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 Dec 2021 15:29:19 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=e51b46cefbfaab08f6e5cb402ebecbf1c0cba3c8
commit e51b46cefbfaab08f6e5cb402ebecbf1c0cba3c8
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-12-23 15:21:32 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2021-12-23 15:21:32 +0000
net80211: fix debug printf
We are printing %p in _db_show_sta(), there is no need to prefix it
with 0x again to get a 0x0x...
Spsonsored by: The FreeBSD Foundation
MFC after: 3 days
---
sys/net80211/ieee80211_ddb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/net80211/ieee80211_ddb.c b/sys/net80211/ieee80211_ddb.c
index 272aaf988ba1..e649b3c86fda 100644
--- a/sys/net80211/ieee80211_ddb.c
+++ b/sys/net80211/ieee80211_ddb.c
@@ -236,7 +236,7 @@ _db_show_sta(const struct ieee80211_node *ni)
{
int i;
- db_printf("0x%p: mac %s refcnt %d\n", ni,
+ db_printf("%p: mac %s refcnt %d\n", ni,
ether_sprintf(ni->ni_macaddr), ieee80211_node_refcnt(ni));
db_printf("\tvap %p wdsvap %p ic %p table %p\n",
ni->ni_vap, ni->ni_wdsvap, ni->ni_ic, ni->ni_table);