warning spew from cddl libnvpair.c

Joerg Sonnenberger joerg at britannica.bec.de
Fri Oct 25 13:09:04 UTC 2013


On Fri, Oct 25, 2013 at 02:26:43PM +0200, Daniel Hartmeier wrote:
> How is that valid?

Different question.

> If nvprt_btwnarrfmt contains %, how would
> 
> 	(void) fprintf(fp, pctl->nvprt_btwnarrfmt); \
> 
> not crash?

Correct. The version I see in NetBSD uses real format strings and
arguments of fixed types, so it still has this kind of problems, but it
is more clear that it is likely correct.

Joerg


More information about the freebsd-hackers mailing list