]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
bsd: don't report a warning when no media information is present
authorVincent Bernat <bernat@luffy.cx>
Sat, 27 Apr 2013 08:59:52 +0000 (10:59 +0200)
committerVincent Bernat <bernat@luffy.cx>
Sat, 27 Apr 2013 08:59:52 +0000 (10:59 +0200)
On NetBSD, xennet interfaces do not support reporting media
information. This is expected. Just log this at debug level.
Closes: #34.
src/daemon/interfaces-bsd.c

index 02b1efbef83331e0b29d42690e517ef9ca8a8cd9..961dd7671dd5faefeed6cd8fbdf179a5dc6e33ca 100644 (file)
@@ -518,7 +518,7 @@ ifbsd_macphy(struct lldpd *cfg,
            hardware->h_ifname);
        strlcpy(ifmr.ifm_name, hardware->h_ifname, sizeof(ifmr.ifm_name));
        if (ioctl(cfg->g_sock, SIOCGIFMEDIA, (caddr_t)&ifmr) < 0) {
-               log_warn("interfaces",
+               log_debug("interfaces",
                    "unable to get media information from %s",
                    hardware->h_ifname);
                return;