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

From: Joe Perches
Date: Fri Apr 06 2012 - 20:59:28 EST


On Sat, 2012-04-07 at 02:26 +0200, Jiri Kosina wrote:
> On Wed, 4 Apr 2012, Kay Sievers wrote:
>
> > - Output of dev_printk() is reliably machine-readable now. In addition
> > to the printed plain text message, it creates a log dictionary with the
> > following properties:
> > SUBSYSTEM= - the driver-core subsytem name
> > DEVICE=
> > b12:8 - block dev_t
> > c127:3 - char dev_t
> > n8 - netdev ifindex
> > +sound:card0 - subsystem:devname
>
> One of the questions that hasn't been raised yet, and which I personally
> consider crucial -- are we making printk() interface part of userspace ABI
> now by this?

I hope not.

> Today, we are free to change any printk()s and not feel guilty about it at
> all. With this, we are making the whole thing much more systematic and
> friendly for automatic userspace consumption.

It _may_ be that new KEYWORD=VALUE combinations may become
systematic and an ABI, but the content of the message is
still arbitrary and should be designated as changeable
without notice.



--
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/