Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2007 14:30:58 -0700
From:      Alfred Perlstein <alfred@freebsd.org>
To:        Marcel Moolenaar <xcllnt@mac.com>
Cc:        arch@freebsd.org
Subject:   Re: Replacing/enhancing kernel printf()
Message-ID:  <20070920213057.GV79417@elvis.mu.org>
In-Reply-To: <F6298D8C-E5B1-42BE-8492-E9016741895A@mac.com>
References:  <96A863DB-3C0B-4AD0-B0A1-3C0A89B42C75@mac.com> <20070919193150.GM79417@elvis.mu.org> <F6298D8C-E5B1-42BE-8492-E9016741895A@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Marcel Moolenaar <xcllnt@mac.com> [070920 14:22] wrote:
> On Sep 19, 2007, at 12:31 PM, Alfred Perlstein wrote:
> 
> 	...
> >In effect one could define a tree, akin to sysctl that provided
> >all these layers.
> 	...
> >Effectively a description file like this:
> >
> >  all
> >  all.kern
> >  all.kern.dev
> >  all.kern.dev.fxp
> >  all.kern.dev.fxp.rx
> >  all.kern.dev.fxp.tx
> >  ..
> 	...
> >Then inside the program one would simply write:
> >
> >alfred_printf(all_kern_dev_fxp, 1, "Fxp initialized");
> >
> >then maybe in the rx routine:
> >
> >alfred_printf(all_kern_dev_fxp_rx, 2, "Fxp got packet");
> 
> 
> For some reason this struck a note. While this was done
> for debug levels and may not directly apply to generic
> console output and redirection, it did put a seed in my
> head relating to device_printf(). Nothing concrete and
> it may not be anything, but still :-)

so you like it?  I do!


-- 
- Alfred Perlstein



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