aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorRussell King <[email protected]>2015-10-03 17:09:07 +0000
committerDavid S. Miller <[email protected]>2015-10-07 09:58:49 +0000
commitd25b8e74291fec2dbf3fe3df7f20289eeaa9d28f (patch)
treec20a5e5778954ba7cbe12ae2dc24c5fea3f10806 /net/dsa/dsa.c
parentnet: dsa: mv88e6xxx: remove link polling (diff)
downloadkernel-d25b8e74291fec2dbf3fe3df7f20289eeaa9d28f.tar.gz
kernel-d25b8e74291fec2dbf3fe3df7f20289eeaa9d28f.zip
net: dsa: better error reporting
Add additional error reporting to the generic DSA code, so it's easier to debug when things go wrong. This was useful when initially bringing up 88e6176 on a new board. Signed-off-by: Russell King <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
-rw-r--r--net/dsa/dsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index c59fa5d9c22c..aa398bcef9e3 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -326,8 +326,8 @@ static int dsa_switch_setup_one(struct dsa_switch *ds, struct device *parent)
ret = dsa_slave_create(ds, parent, i, pd->port_names[i]);
if (ret < 0) {
- netdev_err(dst->master_netdev, "[%d]: can't create dsa slave device for port %d(%s)\n",
- index, i, pd->port_names[i]);
+ netdev_err(dst->master_netdev, "[%d]: can't create dsa slave device for port %d(%s): %d\n",
+ index, i, pd->port_names[i], ret);
ret = 0;
}
}