git: 4f158a444ee7 - main - net80211: Remove tautological state display

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Sat, 06 Aug 2022 01:54:01 UTC
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=4f158a444ee7365454cc3ea1547b1b5c323dae55

commit 4f158a444ee7365454cc3ea1547b1b5c323dae55
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-07-19 04:10:40 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-08-06 01:53:38 +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
    MFC after:              1 week
    Differential Revision:  https://reviews.freebsd.org/D35849
---
 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,