From: Toke Høiland-Jørgensen Date: Fri, 22 Apr 2022 15:04:56 +0000 (+0200) Subject: Babel: Fix compilation when LOCAL_DEBUG is set in packets.c X-Git-Tag: v2.0.10~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8298001389f021f68ead1ed2b4809edb60ae416;p=thirdparty%2Fbird.git Babel: Fix compilation when LOCAL_DEBUG is set in packets.c The debug output was not updated with the rest of the code, so packets.c fails to compile if LOCAL_DEBUG is set. --- diff --git a/proto/babel/packets.c b/proto/babel/packets.c index f13410e2a..2647a79f1 100644 --- a/proto/babel/packets.c +++ b/proto/babel/packets.c @@ -2011,7 +2011,7 @@ babel_auth_sign(struct babel_iface *ifa, ip_addr dest) } DBG("Added MAC signatures (%d bytes) on ifa %s for dest %I\n", - tot_len, ifa->ifname, dest); + pos - (pkt + len), ifa->ifname, dest); return pos - (pkt + len); }