From e2753d75f88632dd8241a013c1668c94e78107fd Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 25 Apr 2022 23:35:02 +0200 Subject: [PATCH] plugins: silence netlink developer debug messages Default debug level for the netlink plugin is just too noisy. Let's drop debug messages (mostly) intended for developers. Signed-off-by: Joachim Wiberg --- plugins/netlink.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/netlink.c b/plugins/netlink.c index 411295ac..8cc3af17 100644 --- a/plugins/netlink.c +++ b/plugins/netlink.c @@ -253,18 +253,18 @@ static int nl_parse(int sd) return -1; } - _d("recv %zd bytes", len); +// _d("recv %zd bytes", len); l = (size_t)len; for (nh = (struct nlmsghdr *)nl_buf; NLMSG_OK(nh, l); nh = NLMSG_NEXT(nh, l)) { struct nlmsgerr *nle; switch (nh->nlmsg_type) { case NLMSG_DONE: - _d("Done with netlink messages."); +// _d("Done with netlink messages."); return 0; case NLMSG_ERROR: - _d("Kernel netlink comm. error."); +// _d("Kernel netlink comm. error."); nle = NLMSG_DATA(nh); if (nle) { errno = -nle->error; @@ -274,13 +274,13 @@ static int nl_parse(int sd) case RTM_NEWROUTE: case RTM_DELROUTE: - _d("Netlink route ..."); +// _d("Netlink route ..."); nl_route(nh, len); break; case RTM_NEWLINK: case RTM_DELLINK: - _d("Netlink link ..."); +// _d("Netlink link ..."); nl_link(nh, len); break; @@ -304,14 +304,14 @@ static int nl_request(int sd, unsigned int seq, int type) switch (type) { case RTM_GETROUTE: - _d("RTM_GETROUTE"); +// _d("RTM_GETROUTE"); nlr->rtm.rtm_family = AF_INET; nlr->rtm.rtm_table = RT_TABLE_MAIN; nlr->nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); break; case RTM_GETLINK: - _d("RTM_GETLINK"); +// _d("RTM_GETLINK"); nlr->ifi.ifi_family = AF_UNSPEC; nlr->ifi.ifi_change = 0xFFFFFFFF; nlr->nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));