diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2020-06-29 21:43:13 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-30 12:44:20 -0700 |
commit | 65951a9eb65e79b5a056fa6912682d91136507a1 (patch) | |
tree | a9525e9fe1c31dbc8bce3f1a2816807b94fef850 /net/dsa | |
parent | 9d9f95a94097a21ee7a910db35c9b15ac1426724 (diff) | |
download | linux-65951a9eb65e79b5a056fa6912682d91136507a1.tar.gz linux-65951a9eb65e79b5a056fa6912682d91136507a1.tar.bz2 linux-65951a9eb65e79b5a056fa6912682d91136507a1.zip |
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 <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/slave.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 4c7f086a047b..e147e10b411c 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -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; } |