[net80211] log the node pointer when calling ht node init/cleanup

This makes it easier to track which node is having what done do it
during normal use.

This is likely the eighth time I've done this since I started doing
net80211 development, so I think it's about time I just committed it.
This commit is contained in:
Adrian Chadd 2016-04-09 22:01:32 +00:00
parent 169c392c43
commit 5cf581e264

View File

@ -1063,8 +1063,9 @@ ieee80211_ht_node_init(struct ieee80211_node *ni)
IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_11N,
ni,
"%s: called",
__func__);
"%s: called (%p)",
__func__,
ni);
if (ni->ni_flags & IEEE80211_NODE_HT) {
/*
@ -1074,8 +1075,8 @@ ieee80211_ht_node_init(struct ieee80211_node *ni)
*/
IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_11N,
ni,
"%s: calling cleanup",
__func__);
"%s: calling cleanup (%p)",
__func__, ni);
ieee80211_ht_node_cleanup(ni);
}
for (tid = 0; tid < WME_NUM_TID; tid++) {
@ -1100,8 +1101,8 @@ ieee80211_ht_node_cleanup(struct ieee80211_node *ni)
IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_11N,
ni,
"%s: called",
__func__);
"%s: called (%p)",
__func__, ni);
KASSERT(ni->ni_flags & IEEE80211_NODE_HT, ("not an HT node"));