[Swan-dev] debug-logging
Andrew Cagney
andrew.cagney at gmail.com
Tue Nov 20 16:28:02 UTC 2018
On Thu, 15 Nov 2018 at 10:58, Andrew Cagney <andrew.cagney at gmail.com> wrote:
>
> To move this discussion along a little, I added the function(1):
>
> void dbg(const char *fmt, ...) PRINTF_LIKE(1);
>
> and tried using it in "ikev2_tc.c" vis:
>
> dbg(" connection \"%s\" does not match IDs or CA of current
> connection \"%s\"",
> d->name, c->name);
>
> my idea is to next add:
>
> dbg_crypt()
>
> and then dump DBGF().
While it works it heads for an interface explosion as we'll want at least:
dbg_crypt()
dbg_more()
So instead I'll repurpose DBGF() to be the more terse:
DBGF(CRYPT, format, ...)
DBGF(MORE, format, ...)
where both wrap a single dbgf(lset_t, format, ...) function.
More information about the Swan-dev
mailing list