Re: [PATCH] printk: support structured and multi-facility logmessages
From: Joe Perches
Date: Thu Apr 05 2012 - 21:12:46 EST
On Thu, 2012-04-05 at 21:47 +0200, Kay Sievers wrote:
> Better?
>
> [root@mop ~]# cat /dev/kmsg
[]
> 6,5,0; BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
> 6,6,0; BIOS-e820: 0000000000100000 - 000000001fffd000 (usable)
> 6 ,7,0; BIOS-e820: 000000001fffd000 - 0000000020000000 (reserved)
Not really, why the space between the 6 and the comma?
> This patch extends printk() to be able to attach arbitrary key/value
> pairs to logged messages,
Bad commit changelog.
It does not extend printk(). printk() is a function call.
It extends the message logging subsystem to include the
printk_emit() and vprintk_emit() functions, which can
add decidedly not arbitrary key/value pairs, but some
additional subsystem specific information.
> - Output of dev_printk() is reliably machine-readable now.
No, it's not.
An output header simply contains additional
structured information. The message portion
can still be arbitrary gobbledygook.
I still think this should be 3 patches not 1.
--
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/