]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
interfaces: issue a warning if we get a loop
authorVincent Bernat <vincent@bernat.im>
Sun, 13 Mar 2016 11:11:35 +0000 (12:11 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 13 Mar 2016 11:11:35 +0000 (12:11 +0100)
We really want to correct that.

src/daemon/interfaces.c

index 8c18be0974cae70bacbaf425c5de7031046ef16f..09aeff8801145ac142c260f7de5b542208f30f42 100644 (file)
@@ -235,8 +235,8 @@ iface_append_vlan_to_lower(struct lldpd *cfg,
     int depth)
 {
        if (depth > 5) {
-               log_debug("interfaces",
-                   "maximum depth reached when applying VLAN %s (loop?)",
+               log_warn("interfaces",
+                   "BUG: maximum depth reached when applying VLAN %s (loop?)",
                    vlan->name);
                return;
        }