From: Sean Anderson Date: Mon, 4 Oct 2021 21:50:02 +0000 (-0400) Subject: net: sfp: Fix typo in state machine debug string X-Git-Tag: baikal/aarch64/sdk6.1~5612^2~15 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=7fbe17961787803712f5d8fee55e434d82fab1ca;p=kernel.git net: sfp: Fix typo in state machine debug string The string should be "tx_disable" to match the state enum. Fixes: c09d44c8dc4d ("net: phy: sftp: print debug message with text, not numbers") Signed-off-by: Sean Anderson Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c index 34e90216bd2cb..ab77a9f439ef9 100644 --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c @@ -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)