Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2009 05:22:21 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        Daniel Eischen <deischen@freebsd.org>, FreeBSD Arch <arch@freebsd.org>, Marcel Moolenaar <xcllnt@mac.com>
Subject:   Re: On errno 
Message-ID:  <95823.1238476941@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 30 Mar 2009 15:35:24 MST." <49D1492C.5050101@freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <49D1492C.5050101@freebsd.org>, Tim Kientzle writes:

>> The probelm with an integer is that you cannot give details
>> like:
>> 	"partition 3 overlaps bootcode"
>> without precreating the N^2 possible messages of that kind.
>
>The standard solution if you need variable parameters,
>of course, is to pass the parameters back:
>    int code: EPARTITIONOVERLAPSBOOTCODE
>    char *default_text: "partition %1d overlaps bootcode"
>    arg1: 3

And the "standard" solution is stupid and useless, because more
often than not, some language, typically french, will want the
arguments in the opposite order...

-- 
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.



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