Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 2025 22:27:36 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Brooks Davis <brooks@freebsd.org>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: Un-sucking EINVAL (was: ip# on bridge members)
Message-ID:  <202505212227.54LMRaFm005200@critter.freebsd.dk>
In-Reply-To: <aC5SAlk-TLUPIzPu@spindle.one-eyed-alien.net>
References:  <aC0CgBBWrodf6pa8@ragweed.eden.le-fay.org> <202505210722.54L7MTqw025632@critter.freebsd.dk> <aC5SAlk-TLUPIzPu@spindle.one-eyed-alien.net>

index | next in thread | previous in thread | raw e-mail

--------
Brooks Davis writes:


> FWIW, I found it useful that we made SYSERRCAUSE take a format string.
> When debugging complicated mmap usage errors, [...]

The main problem with format strings is that then we need memory
(pre-)allocation.

My proposal gives up that level of precision in favor of simplicity
and minimum performance impact.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505212227.54LMRaFm005200>