| From | Sent On | Attachments |
|---|---|---|
| Marcel Moolenaar | Sep 19, 2007 12:15 pm | |
| Poul-Henning Kamp | Sep 19, 2007 12:25 pm | |
| Alfred Perlstein | Sep 19, 2007 12:56 pm | |
| Marcel Moolenaar | Sep 19, 2007 2:17 pm | |
| Doug Ambrisko | Sep 19, 2007 3:56 pm | |
| Poul-Henning Kamp | Sep 19, 2007 10:15 pm | |
| Marcel Moolenaar | Sep 20, 2007 2:17 pm | |
| Marcel Moolenaar | Sep 20, 2007 2:22 pm | |
| Alfred Perlstein | Sep 20, 2007 2:33 pm | |
| Marcel Moolenaar | Sep 22, 2007 11:42 am | |
| Poul-Henning Kamp | Sep 22, 2007 12:15 pm | |
| Marcel Moolenaar | Sep 22, 2007 12:47 pm | |
| Poul-Henning Kamp | Sep 22, 2007 1:03 pm |
| Subject: | Replacing/enhancing kernel printf() | |
|---|---|---|
| From: | Alfred Perlstein (alf...@freebsd.org) | |
| Date: | Sep 20, 2007 2:33:56 pm | |
| List: | org.freebsd.freebsd-arch | |
* Marcel Moolenaar <xcl...@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





