bridge: add a debug message when a device could not be added
authorFelix Fietkau <nbd@openwrt.org>
Mon, 5 Mar 2012 19:46:17 +0000 (20:46 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 5 Mar 2012 19:46:17 +0000 (20:46 +0100)
bridge.c

index dbfd47050d99c73deab25b2ba7b6da257a7560de..1cafad82fd34ee87251f639ed8c9095572f95c77 100644 (file)
--- 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;