summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-05 20:46:17 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-03-05 20:46:17 +0100
commit8dd62f559f99b6c5e1c32ef64a94b46d90237fc9 (patch)
tree0d700eb008d43c5ba780550610dbd6e0652bee50
parent6920c566c1d4e18ac0ece6b25642f8b4b139cedf (diff)
bridge: add a debug message when a device could not be added
-rw-r--r--bridge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bridge.c b/bridge.c
index dbfd470..1cafad8 100644
--- a/bridge.c
+++ b/bridge.c
@@ -107,8 +107,10 @@ bridge_enable_member(struct bridge_member *bm)
goto error;
ret = system_bridge_addif(&bst->dev, bm->dev.dev);
- if (ret < 0)
+ if (ret < 0) {
+ D(DEVICE, "Bridge device %s could not be added\n", bm->dev.dev->ifname);
goto error;
+ }
return 0;