Subject: Re: Convience aprint wrappers
To: None <>
From: Darren Reed <>
List: tech-kern
Date: 09/26/2007 22:22:58
Joerg Sonnenberger wrote:
> Hi all,
> are there objections to add
> aprint_{normal,naive,error,debug,verbose}_{dev,ifnet}
> 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)?