From: "Theo de Raadt" Subject: Re: wg(4) logging enhancement - revised patch To: Vitaliy Makkoveev Cc: Lloyd , Stuart Henderson , "tech@openbsd.org" Date: Wed, 01 Jan 2025 23:02:57 -0700 No, printf should not print IP addresses. Create a helper function that returns a static string, and print it with %. Yes that means you can'to do two of them nicely in one call. That's not terribly rough. That is how this is done in userland.