Re: bgpd, fix log_peer_info() and friends

2023-10-14 Thread Claudio Jeker
On Fri, Oct 13, 2023 at 07:16:13PM +0200, Theo Buehler wrote: > On Fri, Oct 13, 2023 at 07:01:06PM +0200, Claudio Jeker wrote: > > Extending the format string with the peer info is a bad idea. > > The reason is DNS^WIPv6 and scoped addresses which add a % to the > > string returned by

Re: bgpd, fix log_peer_info() and friends

2023-10-13 Thread Theo Buehler
On Fri, Oct 13, 2023 at 07:01:06PM +0200, Claudio Jeker wrote: > Extending the format string with the peer info is a bad idea. > The reason is DNS^WIPv6 and scoped addresses which add a % to the > string returned by log_fmt_peer. > > So instead vasprintf() the emsg and then just use logit().