Re: [RFC] New kernel-message logging API (take 2)

From: Vegard Nossum
Date: Fri Sep 28 2007 - 07:59:30 EST

On 9/28/07, Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx> wrote:
> On Sep 27 2007 23:18, Vegard Nossum wrote:
> > * kprint_<level>() is better than kprint(<level), ) because in the
> > case of the default log-level, the argument can be omitted.
> > * Memory allocated for entries and arguments is done in a ring-buffer
> > with variable-sized chunks. Arguments are chained with a singly-
> > linked list.
> > * Rename kprint buffers to kprint blocks
> This is overall, quite a lot. I suggest one-thing-at-a-time,
> starting with kprint_<level>() that is compiled out if desired
> and no fancy block or newline stuff.
> _Then_, will see how it flies. All of this smells like a bit of
> overdesigning, aka

Well, that's why I'm writing it down before actually coding it.
Designing is also trying to make things fit together without actually
having the physical parts at hand. So I'm trying to make an interface
that CAN support multi-line blocks in the future, since it's obviously
a desired (and currently missing) feature.

But I agree; It *is* hard to see how multi-line blocks can be
implemented without actually spelling it out in code. I've tried to do
it, and failed. Until a brilliant solution comes up, I'll skip it.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at