Subject: Re: Convience aprint wrappers
To: None <firstname.lastname@example.org>
From: Joerg Sonnenberger <email@example.com>
Date: 09/27/2007 13:56:13
On Wed, Sep 26, 2007 at 10:22:58PM -0700, Darren Reed wrote:
> Joerg Sonnenberger wrote:
>> Hi all,
>> are there objections to add
>> that take a device_t or struct ifnet * as first argument and prefix the
>> message with the device name or interface name? This is similiar to
>> device_printf in FreeBSD and quite a bit shorter than writing
>> device_xname() all over the place.
> Why do you want to make the severity/type of message (normal, naive, etc)
> part of
> the function name and not an argument (cf. syslog/log)?
Because I am just following the existing convience. I also think that it
is very important that this things are constants as it would allow
optimising away e.g. debug automatically if that it is desired.