Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Aug 2022 03:34:14 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6d7dc79781e8 - stable/13 - net80211: Remove tautological state display
Message-ID:  <202208130334.27D3YElt018924@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=6d7dc79781e8e844542339241d413179fb4c1f22

commit 6d7dc79781e8e844542339241d413179fb4c1f22
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-07-19 04:10:40 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-08-13 03:34:00 +0000

    net80211: Remove tautological state display
    
    When printing the current state name and the old state numeric value,
    both are always the same. Remove the redundant ostate. It is always
    the same as iv_state.
    
    Reviewed by:            bz
    Differential Revision:  https://reviews.freebsd.org/D35849
    
    (cherry picked from commit 4f158a444ee7365454cc3ea1547b1b5c323dae55)
---
 sys/net80211/ieee80211_output.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
index 50284da6f7d1..69d25d5b1ba2 100644
--- a/sys/net80211/ieee80211_output.c
+++ b/sys/net80211/ieee80211_output.c
@@ -3426,9 +3426,9 @@ ieee80211_tx_mgt_cb(struct ieee80211_node *ni, void *arg, int status)
 	 */
 	if (vap->iv_state == ostate) {
 		IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE | IEEE80211_MSG_DEBUG,
-		    "ni %p mode %s state %s ostate %d arg %p status %d\n", ni,
+		    "ni %p mode %s state %s arg %p status %d\n", ni,
 		    ieee80211_opmode_name[vap->iv_opmode],
-		    ieee80211_state_name[vap->iv_state], ostate, arg, status);
+		    ieee80211_state_name[vap->iv_state], arg, status);
 
 		callout_reset(&vap->iv_mgtsend,
 			status == 0 ? IEEE80211_TRANS_WAIT*hz : 0,



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