]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Add error code to the multicast address add/delete failure msg
authorSam Tannous <stannous@cumulusnetworks.com>
Tue, 8 Jul 2014 19:15:48 +0000 (15:15 -0400)
committerVincent Bernat <vincent@bernat.im>
Tue, 8 Jul 2014 20:38:24 +0000 (22:38 +0200)
Move mac filter delete info msg to debug and add error
to the multicast address add/delete failure msg.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Sam Tannous <stannous@cumulusnetworks.com>
src/daemon/interfaces.c

index 9c9d024f587c43d6d2b29fdbbd5171cb0c3f19d7..d29eacc2c74e5fc054d075d9ed38080e75dd9bb2 100644 (file)
@@ -40,11 +40,11 @@ interfaces_setup_multicast(struct lldpd *cfg, const char *name,
                            cfg->g_protocols[i].mac, !remove)) != 0) {
                        errno = rc;
                        if (errno != ENOENT)
-                               log_info("interfaces",
-                                   "unable to %s %s address to multicast filter for %s",
+                               log_debug("interfaces",
+                                   "unable to %s %s address to multicast filter for %s (%s)",
                                    (remove)?"delete":"add",
                                    cfg->g_protocols[i].name,
-                                   name);
+                                   name, strerror(rc));
                }
        }
 }