Re: Replacing/enhancing kernel printf()



* Marcel Moolenaar <xcllnt@xxxxxxx> [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
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: get HelpContextIDs or Tags of all userforms
    ... I haven't tried the large routine you recently posted but I had tried the ... >>> For some reason I have to run the Sub twice to get the Form names in ... >> see an obvious reason for any errors at all, ... >> Dim bDebug as boolean ...
    (microsoft.public.excel.programming)
  • Re: Update string too long?
    ... > And we won't question to reason for this routine as you asked... ... Pro SQL Server 2000 Database Design - ... > support the full length of the inserted data? ...
    (microsoft.public.sqlserver.programming)
  • Re: Barney Rubble, dinosaurs and fundy-fun
    ... So the reason not to tell them that dinosaurs never existed is not ... Here's what struck me: ... Nod nod nod. ...
    (talk.origins)
  • What Bugs Me About UK.
    ... Hate to dredge up this topic again, but I was just listening, for some reason, ... to "In the Dead of Night", and it struck me that, while I'm sure it's very ...
    (rec.music.progressive)
  • Re: 320pin BGA Pin Layout suggestions
    ... I am looing at laying out 320pin BGA on a PCB like this one. ... The pitch between balls is 0.5mm. ... How many PCB layers would you recommend and why ... Got a reason, ...
    (sci.electronics.design)