[PATCH] babel: Fix compilation when LOCAL_DEBUG is set in packets.c

Ondrej Zajicek santiago at crfreenet.org
Tue Apr 19 15:31:26 CEST 2022


On Tue, Apr 19, 2022 at 01:24:09AM +0200, Toke Høiland-Jørgensen wrote:
> The debug output was not updated with the rest of the code, so packets.c
> fails to compile if LOCAL_DEBUG is set.

Thanks, will merge.

> 
> Signed-off-by: Toke Høiland-Jørgensen <toke at toke.dk>
> ---
>  proto/babel/packets.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/proto/babel/packets.c b/proto/babel/packets.c
> index f13410e2a5ab..2647a79f1baf 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);
>  }
> -- 
> 2.35.3

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."



More information about the Bird-users mailing list