]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: sfp: Fix typo in state machine debug string
authorSean Anderson <sean.anderson@seco.com>
Mon, 4 Oct 2021 21:50:02 +0000 (17:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Oct 2021 12:08:13 +0000 (13:08 +0100)
The string should be "tx_disable" to match the state enum.

Fixes: c3b8c4900ec7 ("net: phy: sftp: print debug message with text, not numbers")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/sfp.c

index 34e90216bd2cb7fedcbf0f22637cffc853ffe46b..ab77a9f439ef9a51e6095fc371a39fd3437a2b7c 100644 (file)
@@ -134,7 +134,7 @@ static const char * const sm_state_strings[] = {
        [SFP_S_LINK_UP] = "link_up",
        [SFP_S_TX_FAULT] = "tx_fault",
        [SFP_S_REINIT] = "reinit",
-       [SFP_S_TX_DISABLE] = "rx_disable",
+       [SFP_S_TX_DISABLE] = "tx_disable",
 };
 
 static const char *sm_state_to_str(unsigned short sm_state)