Re: [PATCH] printk: support structured and multi-facility logmessages

From: Sam Ravnborg
Date: Thu Apr 05 2012 - 04:08:22 EST


> >
> > How are arbitrary key/value pairs attached
> > in a printk?
>
> There are 120 lines in the changelog, and a 100 lines large comment
> block in the source code, and another 50 lines spread over the code,
> and the hexdump examples in it, and all that? Even without looking at
> a single line of code, it should be explained from different
> viewpoints more than once.

color me blind - but I could not find any example of how I specify
key/value pairs when I use printk().

I could find lots of internal information - that parts looks to
be extensively documented - good.

But how I as a user specify this I failed to find.
Today I do:

printk(KERN_ERR "foobar is bad");

But how is that extended to include the key/value pairs?


Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/