Subject: Re: Convert kernel printf() to aprint_*() or log()
To: None <M.Drochner@fz-juelich.de>
From: Matt Fleming <mjf@NetBSD.org>
List: tech-kern
Date: 03/15/2007 14:04:57
On 15/03/07, Matthias Drochner <M.Drochner@fz-juelich.de> wrote:
>
> mjf@NetBSD.org said:
> > What duplication?
>
> Eg in kern/subr_autoconf:
>         if (parent == ROOT) {
>                 aprint_naive("%s (root)", dev->dv_xname);
>                 aprint_normal("%s (root)", dev->dv_xname);
>         } else {
>                 aprint_naive("%s at %s", dev->dv_xname, parent->dv_xname);
>                 aprint_normal("%s at %s", dev->dv_xname, parent->dv_xname);

Code should be free to set AB_QUIET and have nothing printed to the
console. This is an abuse (printing to the console regardless of the
value of AB_QUIET). Perhaps some other function could be used to print
these types of things to the console? i.e. _really_ important messages
that can't be 'turned off'.

--mjf