net: dsa: Improve subordinate PHY error message
Subsystems (3)
PATCH 1/1 net: dsa: Improve subordinate PHY error message
It is not very informative to know the DSA master device when a subordinate network device fails to get its PHY setup. Provide the device name and capitalize PHY while we are it.
Signed-off-by Florian Fainelli <[email protected]>
--- net/dsa/slave.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/dsa/slave.c +2 -1
@@ -1795,7 +1795,8 @@ int dsa_slave_create(struct dsa_port *port) ret =dsa_slave_phy_setup (slave_dev);if (ret) { -netdev_err (master,"error %d setting up slave phy\n" , ret); +netdev_err (master,"error %d setting up slave PHY for %s\n" , + ret, slave_dev->name); goto out_gcells; }
Signature · 1 line
2.17.1
Quoted 5 lines · Florian Fainelli
It is not very informative to know the DSA master device when a subordinate network device fails to get its PHY setup. Provide the device name and capitalize PHY while we are it.
Signed-off-by Florian Fainelli <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
Andrew
From: Florian Fainelli <[email protected]>
Date: Mon, 29 Jun 2020 21:43:13 -0700
Quoted 5 lines
It is not very informative to know the DSA master device when a subordinate network device fails to get its PHY setup. Provide the device name and capitalize PHY while we are it.
Signed-off-by Florian Fainelli <[email protected]>
Applied, thanks.