From 45a83f305d676ccbd698e4315f782a67cf6cee32 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 27 Apr 2013 10:59:52 +0200 Subject: [PATCH] bsd: don't report a warning when no media information is present 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/interfaces-bsd.c b/src/daemon/interfaces-bsd.c index 02b1efbe..961dd767 100644 --- a/src/daemon/interfaces-bsd.c +++ b/src/daemon/interfaces-bsd.c @@ -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; -- 2.39.5