From f13d2cecaebf8b1ec31692b74b63169a7548c1ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20H=C3=A4rdeman?= Date: Tue, 11 Nov 2025 13:08:22 +0100 Subject: [PATCH] netlink: fix typo in debug msg MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit As noted by @CasperVector in #115, there's a typo in netlink.c, checking if true is true isn't very useful :) Signed-off-by: David Härdeman Link: https://github.com/openwrt/odhcpd/pull/305 Signed-off-by: Álvaro Fernández Rojas --- src/netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netlink.c b/src/netlink.c index 393678d..c612884 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -423,7 +423,7 @@ static int handle_rtm_neigh(struct nlmsghdr *hdr, bool add) if (iface->ifindex != ndm->ndm_ifindex) continue; - debug("Netlink %s %s on %s", true ? "newneigh" : "delneigh", + debug("Netlink %s %s on %s", add ? "newneigh" : "delneigh", buf, iface->name); event_info.iface = iface; -- 2.30.2