Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2022 14:46:18 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0ff24a520a64 - stable/13 - net80211: ieee80211_dump_node() cosmetics
Message-ID:  <202201201446.20KEkI3L064919@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=0ff24a520a64a3eda4533b949d015a820afebca7

commit 0ff24a520a64a3eda4533b949d015a820afebca7
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-01-16 23:52:39 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-01-20 14:06:15 +0000

    net80211: ieee80211_dump_node() cosmetics
    
    Printing %p does not need the 0x prefix and while here mark the
    ieee80211_node_table argument unused given we do not need it in the
    current incarnation of the function.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit c3db9d4a1439e0144415e007599a94dde4bee01b)
---
 sys/net80211/ieee80211_node.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index 7f381259214c..2dd90eee83f6 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -2619,9 +2619,10 @@ ieee80211_iterate_nodes(struct ieee80211_node_table *nt,
 }
 
 void
-ieee80211_dump_node(struct ieee80211_node_table *nt, struct ieee80211_node *ni)
+ieee80211_dump_node(struct ieee80211_node_table *nt __unused,
+    struct ieee80211_node *ni)
 {
-	printf("0x%p: mac %s refcnt %d\n", ni,
+	printf("%p: mac %s refcnt %d\n", ni,
 		ether_sprintf(ni->ni_macaddr), ieee80211_node_refcnt(ni));
 	printf("\tauthmode %u flags 0x%x\n",
 		ni->ni_authmode, ni->ni_flags);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201201446.20KEkI3L064919>